Fix lazygit config both inside and outside of neovim
This commit is contained in:
parent
8c6a642d99
commit
bb3a2cf672
@ -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
|
||||||
@ -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
7
neovide/config.toml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[font]
|
||||||
|
normal = ["Inconsolata Patched G"]
|
||||||
|
size = 12
|
||||||
|
|
||||||
|
[box-drawing]
|
||||||
|
mode = "selected-native"
|
||||||
|
selected = "🮐🮑🮒─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▐ ░▒▓▔▕▖▗▘▙▚▛▜▝▞▟"
|
||||||
@ -5,19 +5,18 @@
|
|||||||
"conform.nvim": { "branch": "master", "commit": "973f3cb73887d510321653044791d7937c7ec0fa" },
|
"conform.nvim": { "branch": "master", "commit": "973f3cb73887d510321653044791d7937c7ec0fa" },
|
||||||
"dropbar.nvim": { "branch": "master", "commit": "64f5540824ab350f02dabc1276f4a1f4f141276b" },
|
"dropbar.nvim": { "branch": "master", "commit": "64f5540824ab350f02dabc1276f4a1f4f141276b" },
|
||||||
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
|
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "588264bee92993df92535b6742576f5655c91b1c" },
|
"gitsigns.nvim": { "branch": "main", "commit": "362fe61f9f19e9bceff178792780df5cce118a7d" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
|
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
|
||||||
"lazygit.nvim": { "branch": "main", "commit": "4839ab642962cc76bb1bf278427dc4c59be15072" },
|
|
||||||
"lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
|
"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-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
|
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
|
||||||
"mini.nvim": { "branch": "main", "commit": "48f48e4b3f317e9da34ee7a01958b4c5018e2d34" },
|
"mini.nvim": { "branch": "main", "commit": "66d3cf727d7bf2ba59df02e710f39640d9af823f" },
|
||||||
"neo-tree.nvim": { "branch": "main", "commit": "cea666ef965884414b1b71f6b39a537f9238bdb2" },
|
"neo-tree.nvim": { "branch": "main", "commit": "fba6d1f9b5ed031f983b2cb413d69838d88d76fa" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
"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-notify": { "branch": "master", "commit": "a22f5d7ac511c2df2fd3290a9f04c48d5a822e2e" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "8dd9150ca7eae5683660ea20cec86edcd5ca4046" },
|
"nvim-surround": { "branch": "main", "commit": "8dd9150ca7eae5683660ea20cec86edcd5ca4046" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
|
|||||||
@ -11,18 +11,18 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
-- {
|
||||||
"kdheepak/lazygit.nvim",
|
-- "kdheepak/lazygit.nvim",
|
||||||
lazy = false,
|
-- lazy = false,
|
||||||
cmd = {
|
-- cmd = {
|
||||||
"LazyGit",
|
-- "LazyGit",
|
||||||
"LazyGitConfig",
|
-- "LazyGitConfig",
|
||||||
"LazyGitCurrentFile",
|
-- "LazyGitCurrentFile",
|
||||||
"LazyGitFilter",
|
-- "LazyGitFilter",
|
||||||
"LazyGitFilterCurrentFile",
|
-- "LazyGitFilterCurrentFile",
|
||||||
},
|
-- },
|
||||||
keys = {
|
-- keys = {
|
||||||
{ "<leader>gs", "<cmd>LazyGit<cr>", desc = "LazyGit" },
|
-- { "<leader>gs", "<cmd>LazyGit<cr>", desc = "LazyGit" },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,7 +16,6 @@ return {
|
|||||||
enabled = vim.g.have_nerd_font,
|
enabled = vim.g.have_nerd_font,
|
||||||
},
|
},
|
||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
"kdheepak/lazygit.nvim",
|
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("telescope").setup({
|
require("telescope").setup({
|
||||||
@ -30,7 +29,6 @@ return {
|
|||||||
pcall(require("telescope").load_extension, "fzf")
|
pcall(require("telescope").load_extension, "fzf")
|
||||||
pcall(require("telescope").load_extension, "ui-select")
|
pcall(require("telescope").load_extension, "ui-select")
|
||||||
pcall(require("telescope").load_extension, "notify")
|
pcall(require("telescope").load_extension, "notify")
|
||||||
pcall(require("telescope").load_extension, "lazygit")
|
|
||||||
|
|
||||||
-- Define these keys here since they require access to runtime values
|
-- Define these keys here since they require access to runtime values
|
||||||
local builtin = require("telescope.builtin")
|
local builtin = require("telescope.builtin")
|
||||||
|
|||||||
@ -1,14 +1,25 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"akinsho/toggleterm.nvim",
|
"akinsho/toggleterm.nvim",
|
||||||
config = true,
|
|
||||||
cmd = "ToggleTerm",
|
cmd = "ToggleTerm",
|
||||||
opts = {
|
config = function()
|
||||||
open_mapping = [["<leader>tt"]],
|
require("toggleterm").setup({
|
||||||
direction = "horizontal",
|
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 = {
|
keys = {
|
||||||
{ "<leader>tt", "<cmd>ToggleTerm dir=git_dir<CR>", desc = "ToggleTerm: Toggle [t]erminal" },
|
{ "<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",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,11 @@
|
|||||||
vim.g.have_nerd_font = true
|
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.number = true
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
vim.opt.signcolumn = "yes"
|
vim.opt.signcolumn = "yes"
|
||||||
|
|||||||
2
setup.sh
2
setup.sh
@ -18,7 +18,7 @@ if [[ ! -a "$HOME/.zprofile" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Symlink directories to $XDG_CONFIG_HOME.
|
# 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
|
for directory in "${directories[@]}"; do
|
||||||
if [[ -d "$XDG_CONFIG_HOME/$directory" ]]; then continue; fi
|
if [[ -d "$XDG_CONFIG_HOME/$directory" ]]; then continue; fi
|
||||||
ln -sfv "$SCRIPTPATH/$directory" "$XDG_CONFIG_HOME/$directory"
|
ln -sfv "$SCRIPTPATH/$directory" "$XDG_CONFIG_HOME/$directory"
|
||||||
|
|||||||
@ -37,7 +37,6 @@ alias av="ansible-vault"
|
|||||||
if [[ -x "$(command -v nvim)" ]]; then
|
if [[ -x "$(command -v nvim)" ]]; then
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -x "$(command -v highlight)" ]]; then
|
if [[ -x "$(command -v highlight)" ]]; then
|
||||||
alias ccat='highlight -O ansi --force'
|
alias ccat='highlight -O ansi --force'
|
||||||
alias clat='highlight -lO ansi --force'
|
alias clat='highlight -lO ansi --force'
|
||||||
|
|||||||
@ -75,3 +75,8 @@ function update_dotfiles() {
|
|||||||
nvim --headless "+Lazy! install" +qa > /dev/null 2>&1
|
nvim --headless "+Lazy! install" +qa > /dev/null 2>&1
|
||||||
nvim --headless "+Lazy! clean" +qa > /dev/null 2>&1
|
nvim --headless "+Lazy! clean" +qa > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Tool functions
|
||||||
|
function vide() {
|
||||||
|
neovide $1 &
|
||||||
|
}
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
# vim: filetype=zsh
|
||||||
|
|
||||||
SCRIPTPATH=$HOME/.config/dotfiles/zsh
|
SCRIPTPATH=$HOME/.config/dotfiles/zsh
|
||||||
|
|
||||||
# google cloud sdk
|
# 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"
|
source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
|
||||||
fi
|
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
|
# rust additions
|
||||||
if [[ -a "$HOME/.cargo/bin" ]]; then
|
if [[ -a "$HOME/.cargo/bin" ]]; then
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
|||||||
@ -20,6 +20,11 @@ setopt PROMPT_SUBST
|
|||||||
|
|
||||||
SCRIPTPATH=$HOME/.config/dotfiles/zsh
|
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
|
# history substring search
|
||||||
if [[ -a "$SCRIPTPATH/zsh-history-substring-search/zsh-history-substring-search.zsh" ]]; then
|
if [[ -a "$SCRIPTPATH/zsh-history-substring-search/zsh-history-substring-search.zsh" ]]; then
|
||||||
source "$SCRIPTPATH/zsh-history-substring-search/zsh-history-substring-search.zsh"
|
source "$SCRIPTPATH/zsh-history-substring-search/zsh-history-substring-search.zsh"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user