Fix lazygit config both inside and outside of neovim

This commit is contained in:
Ben Kreeger 2025-07-08 13:48:34 -05:00
parent 8c6a642d99
commit bb3a2cf672
Signed by: kreeger
GPG Key ID: D5CF8683D4BE4B50
13 changed files with 86 additions and 45 deletions

View File

@ -0,0 +1,24 @@
---
gui:
theme:
activeBorderColor: ['#a6e3a1', bold]
inactiveBorderColor: ['#a6adc8']
optionsTextColor: ['#89b4fa']
selectedLineBgColor: ['#313244']
cherryPickedCommitBgColor: ['#45475a']
cherryPickedCommitFgColor: ['#a6e3a1']
unstagedChangesColor: ['#f38ba8']
defaultFgColor: ['#cdd6f4']
searchingActiveBorderColor: ['#f9e2af']
authorColors:
'*': '#b4befe'
showRootItemInFileTree: false
showPanelJumps: false
nerdFontsVersion: '3'
git:
merging:
args: --no-ff
mainBranches: [master, main, develop]
autoStageResolvedConflicts: false
overrideGpg: true
parseEmoji: true

View File

@ -1,12 +0,0 @@
---
gui:
showRootItemInFileTree: false
showPanelJumps: false
nerdFontsVersion: '3'
git:
merging:
args: --no-ff
mainBranches: [master, main, develop]
autoStageResolvedConflicts: false
overrideGpg: true
parseEmoji: true

7
neovide/config.toml Normal file
View File

@ -0,0 +1,7 @@
[font]
normal = ["Inconsolata Patched G"]
size = 12
[box-drawing]
mode = "selected-native"
selected = "🮐🮑🮒─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▐ ░▒▓▔▕▖▗▘▙▚▛▜▝▞▟"

View File

@ -5,19 +5,18 @@
"conform.nvim": { "branch": "master", "commit": "973f3cb73887d510321653044791d7937c7ec0fa" },
"dropbar.nvim": { "branch": "master", "commit": "64f5540824ab350f02dabc1276f4a1f4f141276b" },
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
"gitsigns.nvim": { "branch": "main", "commit": "588264bee92993df92535b6742576f5655c91b1c" },
"gitsigns.nvim": { "branch": "main", "commit": "362fe61f9f19e9bceff178792780df5cce118a7d" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
"lazygit.nvim": { "branch": "main", "commit": "4839ab642962cc76bb1bf278427dc4c59be15072" },
"lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "c4c84f4521d62de595c0d0f718a9a40c1890c8ce" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "7815740f4d0afb74ada00956c36e18ad695ed9e3" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
"mini.nvim": { "branch": "main", "commit": "48f48e4b3f317e9da34ee7a01958b4c5018e2d34" },
"neo-tree.nvim": { "branch": "main", "commit": "cea666ef965884414b1b71f6b39a537f9238bdb2" },
"mini.nvim": { "branch": "main", "commit": "66d3cf727d7bf2ba59df02e710f39640d9af823f" },
"neo-tree.nvim": { "branch": "main", "commit": "fba6d1f9b5ed031f983b2cb413d69838d88d76fa" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
"nvim-lspconfig": { "branch": "master", "commit": "1cb30b1bafe5a63a5c6ac20dc39f83487df38855" },
"nvim-lspconfig": { "branch": "master", "commit": "7fac9025a967a4d0846660f751cd392fac6bb788" },
"nvim-notify": { "branch": "master", "commit": "a22f5d7ac511c2df2fd3290a9f04c48d5a822e2e" },
"nvim-surround": { "branch": "main", "commit": "8dd9150ca7eae5683660ea20cec86edcd5ca4046" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },

View File

@ -11,18 +11,18 @@ return {
},
},
},
{
"kdheepak/lazygit.nvim",
lazy = false,
cmd = {
"LazyGit",
"LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
keys = {
{ "<leader>gs", "<cmd>LazyGit<cr>", desc = "LazyGit" },
},
},
-- {
-- "kdheepak/lazygit.nvim",
-- lazy = false,
-- cmd = {
-- "LazyGit",
-- "LazyGitConfig",
-- "LazyGitCurrentFile",
-- "LazyGitFilter",
-- "LazyGitFilterCurrentFile",
-- },
-- keys = {
-- { "<leader>gs", "<cmd>LazyGit<cr>", desc = "LazyGit" },
-- },
-- },
}

View File

@ -16,7 +16,6 @@ return {
enabled = vim.g.have_nerd_font,
},
"rcarriga/nvim-notify",
"kdheepak/lazygit.nvim",
},
config = function()
require("telescope").setup({
@ -30,7 +29,6 @@ return {
pcall(require("telescope").load_extension, "fzf")
pcall(require("telescope").load_extension, "ui-select")
pcall(require("telescope").load_extension, "notify")
pcall(require("telescope").load_extension, "lazygit")
-- Define these keys here since they require access to runtime values
local builtin = require("telescope.builtin")

View File

@ -1,14 +1,25 @@
return {
{
"akinsho/toggleterm.nvim",
config = true,
cmd = "ToggleTerm",
opts = {
open_mapping = [["<leader>tt"]],
direction = "horizontal",
},
config = function()
require("toggleterm").setup({
open_mapping = [["<leader>tt"]],
direction = "horizontal",
})
local Terminal = require("toggleterm.terminal").Terminal
local lazygit = Terminal:new({ cmd = "lazygit", hidden = true, direction = "float" })
function _lazygit_toggle()
lazygit:toggle()
end
end,
keys = {
{ "<leader>tt", "<cmd>ToggleTerm dir=git_dir<CR>", desc = "ToggleTerm: Toggle [t]erminal" },
{
"<leader>gs",
"<cmd>lua _lazygit_toggle()<CR>",
desc = "[g]it [s]tatus",
},
},
},
}

View File

@ -1,4 +1,11 @@
vim.g.have_nerd_font = true
vim.o.guifont = "Inconsolata Patched G:h12"
if vim.g.neovide then
vim.opt.cmdheight = 0
vim.o.linespace = 5
vim.g.neovide_cursor_animation_length = 0
vim.g.neovide_scroll_animation_length = 0
end
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.signcolumn = "yes"

View File

@ -18,7 +18,7 @@ if [[ ! -a "$HOME/.zprofile" ]]; then
fi
# Symlink directories to $XDG_CONFIG_HOME.
directories=("gem" "ghostty" "git" "gnupg" "k9s" "lazygit" "nvim" "starship" "tmux" "zed")
directories=("gem" "ghostty" "git" "gnupg" "k9s" "lazygit" "neovide" "nvim" "starship" "tmux" "zed")
for directory in "${directories[@]}"; do
if [[ -d "$XDG_CONFIG_HOME/$directory" ]]; then continue; fi
ln -sfv "$SCRIPTPATH/$directory" "$XDG_CONFIG_HOME/$directory"

View File

@ -37,7 +37,6 @@ alias av="ansible-vault"
if [[ -x "$(command -v nvim)" ]]; then
alias vim="nvim"
fi
if [[ -x "$(command -v highlight)" ]]; then
alias ccat='highlight -O ansi --force'
alias clat='highlight -lO ansi --force'

View File

@ -75,3 +75,8 @@ function update_dotfiles() {
nvim --headless "+Lazy! install" +qa > /dev/null 2>&1
nvim --headless "+Lazy! clean" +qa > /dev/null 2>&1
}
# Tool functions
function vide() {
neovide $1 &
}

View File

@ -1,3 +1,5 @@
# vim: filetype=zsh
SCRIPTPATH=$HOME/.config/dotfiles/zsh
# google cloud sdk
@ -5,10 +7,6 @@ if [[ -a "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.
source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
fi
if [[ -a "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" ]]; then
source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
fi
# rust additions
if [[ -a "$HOME/.cargo/bin" ]]; then
export PATH="$HOME/.cargo/bin:$PATH"

View File

@ -20,6 +20,11 @@ setopt PROMPT_SUBST
SCRIPTPATH=$HOME/.config/dotfiles/zsh
# google cloud sdk
if [[ -a "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" ]]; then
source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
fi
# history substring search
if [[ -a "$SCRIPTPATH/zsh-history-substring-search/zsh-history-substring-search.zsh" ]]; then
source "$SCRIPTPATH/zsh-history-substring-search/zsh-history-substring-search.zsh"