From: Huck Boles Date: Mon, 15 Apr 2024 23:45:51 +0000 (-0700) Subject: added: small things from kickstart.nvim X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=6abefad65bccde72f636bc63b68f2db777fd0709;p=nvim.git added: small things from kickstart.nvim --- diff --git a/lua/huck/functions.lua b/lua/huck/functions.lua index 7634722..0ca3048 100644 --- a/lua/huck/functions.lua +++ b/lua/huck/functions.lua @@ -36,3 +36,11 @@ vim.api.nvim_create_autocmd("BufNewFile", { end end, }) + +-- highlight on yank +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..abe3b90 100644 --- a/lua/huck/theme.lua +++ b/lua/huck/theme.lua @@ -392,3 +392,16 @@ 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("GitSignsChangeLn", magenta, black, nil, nil) +highlight("GitSignsStagedChangeLn", magenta, black, nil, nil) +highlight("GitSignsStagedChangedeleteLn", magenta, black, nil, nil) +highlight("GitSignsDelete", red, black, nil, nil) +highlight("GitSignsDeletePreview", red, black, nil, nil) +highlight("GitSignsDeleteVirtLn", red, black, nil, nil) diff --git a/lua/plugins/misc.lua b/lua/plugins/misc.lua index c05c91a..f2ccc36 100644 --- a/lua/plugins/misc.lua +++ b/lua/plugins/misc.lua @@ -29,4 +29,17 @@ return { size = 10 } }, + { + 'lewis6991/gitsigns.nvim', + lazy = false, + opts = { + signs = { + add = { text = '+' }, + change = { text = '~' }, + delete = { text = '_' }, + topdelete = { text = '‾' }, + changedelete = { text = '~' }, + }, + }, + }, } diff --git a/lua/plugins/tpope.lua b/lua/plugins/tpope.lua index ac11a28..2488495 100644 --- a/lua/plugins/tpope.lua +++ b/lua/plugins/tpope.lua @@ -1,8 +1,7 @@ return { - { 'tpope/vim-repeat', event = "VeryLazy" }, - { 'tpope/vim-surround', event = "VeryLazy" }, - { 'tpope/vim-endwise', event = "VeryLazy" }, - { 'tpope/vim-commentary', event = "VeryLazy" }, + { 'tpope/vim-repeat', event = "VeryLazy" }, + { 'tpope/vim-surround', event = "VeryLazy" }, + { 'tpope/vim-endwise', event = "VeryLazy" }, { 'tpope/vim-fugitive', keys = {