From: Huck Boles Date: Mon, 15 Apr 2024 18:32:04 +0000 (-0700) Subject: added: stuff from kickstart.nvim X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=8ff3921b25eefe8a09ebb8c2c1fa93811c52e68c;p=nvim.git added: stuff from kickstart.nvim --- diff --git a/lua/huck/functions.lua b/lua/huck/functions.lua index 7634722..6ffc23d 100644 --- a/lua/huck/functions.lua +++ b/lua/huck/functions.lua @@ -36,3 +36,11 @@ vim.api.nvim_create_autocmd("BufNewFile", { end end, }) + +-- highlight yanked text +vim.api.nvim_create_autocmd('TextYankPost', { + group = vim.api.nvim_create_augroup('highlight-yank', { clear = true }), + callback = function() + vim.highlight.on_yank() + end, +}) diff --git a/lua/huck/theme.lua b/lua/huck/theme.lua index 34891a3..15e4ae0 100644 --- a/lua/huck/theme.lua +++ b/lua/huck/theme.lua @@ -392,3 +392,18 @@ highlight("lualine_y_diagnostics_hint_inactive", grey, black, nil, nil) highlight("lualine_c_diff_added_inactive", green, black, nil, nil) highlight("lualine_c_diff_modified_inactive", yellow, black, nil, nil) highlight("lualine_c_diff_removed_inactive", blue, black, nil, nil) + +-- git signs +highlight("GitSignsAdd", green, black, nil, nil) +highlight("GitSignsAddPreview", green, black, nil, nil) +highlight("GitSignsAddLn", green, black, nil, nil) +highlight("GitSignsStagedAddLn", green, black, nil, nil) +highlight("GitSignsChange", magenta, black, nil, nil) +highlight("GitSignsChangedelete", magenta, black, nil, nil) +highlight("GitSignsChangedeleteLn", magenta, black, nil, nil) +highlight("GitSignsChangeLn", magenta, black, nil, nil) +highlight("GitSignsDelete", red, black, nil, nil) +highlight("GitSignsDeletePreview", red, black, nil, nil) +highlight("GitSignsTopDelete", red, black, nil, nil) +highlight("GitSignsDeleteVirtLn", red, black, nil, nil) +highlight("GitSignsDeleteVirtLnum", red, black, nil, nil) diff --git a/lua/plugins/misc.lua b/lua/plugins/misc.lua index c05c91a..21d07b5 100644 --- a/lua/plugins/misc.lua +++ b/lua/plugins/misc.lua @@ -29,4 +29,18 @@ return { size = 10 } }, + + { + 'lewis6991/gitsigns.nvim', + lazy = false, + opts = { + signs = { + add = { text = '+' }, + change = { text = '~' }, + delete = { text = '_' }, + topdelete = { text = '‾' }, + changedelete = { text = '~' }, + }, + }, + }, }