aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/config/gitsigns.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/config/gitsigns.lua b/lua/config/gitsigns.lua
index 3c48d53..175ce35 100644
--- a/lua/config/gitsigns.lua
+++ b/lua/config/gitsigns.lua
@@ -8,6 +8,7 @@ gs.setup {
topdelete = { hl = "GitSignsDelete", text = "‾", numhl = "GitSignsDeleteNr", linehl = "GitSignsDeleteLn" },
changedelete = { hl = "GitSignsChange", text = "│", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn" },
},
+ word_diff = true,
on_attach = function(bufnr)
local function map(mode, l, r, opts)
opts = opts or {}
@@ -43,3 +44,12 @@ gs.setup {
end)
end,
}
+
+vim.api.nvim_create_autocmd('ColorScheme', {
+ pattern = "*",
+ callback = function()
+ vim.cmd [[
+ hi GitSignsChangeInline guibg=fg guifg=bg
+ ]]
+ end
+})