]> git.huck.website - nvim.git/commitdiff
added: small things from kickstart.nvim
authorHuck Boles <huck@huck.website>
Mon, 15 Apr 2024 23:45:51 +0000 (16:45 -0700)
committerHuck Boles <huck@huck.website>
Mon, 15 Apr 2024 23:45:51 +0000 (16:45 -0700)
lua/huck/functions.lua
lua/huck/theme.lua
lua/plugins/misc.lua
lua/plugins/tpope.lua

index 7634722a20003fe47a175a883e6cd806e371bacf..0ca30484080582ab7d929b9b3333e61683586125 100644 (file)
@@ -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,
+})
index 34891a3d40d44d166193bf7d32e0619f46430d13..abe3b9056673fed6bec1fb4fadb6ea3ff2702d70 100644 (file)
@@ -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)
index c05c91a20a528d3c90327f8350b54e9acefc3bb9..f2ccc36a1434aea7a501ecdfd677b1739b039d92 100644 (file)
@@ -29,4 +29,17 @@ return {
             size = 10
         }
     },
+    {
+        'lewis6991/gitsigns.nvim',
+        lazy = false,
+        opts = {
+            signs = {
+                add = { text = '+' },
+                change = { text = '~' },
+                delete = { text = '_' },
+                topdelete = { text = '‾' },
+                changedelete = { text = '~' },
+            },
+        },
+    },
 }
index ac11a28627302f66f4a4bd0808135a2d5af34269..24884957e16879aa940f4699d1e94daa9f26bf7e 100644 (file)
@@ -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 = {