nix-config/nvim/.config/nvim/after/plugin/gitsigns.lua
Oliver Davies 0786ed3b3d chore: move plugin config files into after
Move the nvim configuration files into `.config/nvim/after/plugin` so
that they are autoloaded.

This also means that the local `init` functions can be removed as they
are no longer needed, and this also simplifies the Packer configuration.
2021-11-17 09:42:17 +00:00

23 lines
733 B
Lua

require "colorbuddy"
local c = require("colorbuddy.color").colors
local Group = require("colorbuddy.group").Group
Group.new("GitSignsAdd", c.green)
Group.new("GitSignsChange", c.yellow)
Group.new("GitSignsDelete", c.red)
require 'gitsigns'.setup {
linehl = false,
numhl = true,
signs = {
add = { hl = "GitSignsAdd", text = "", numhl = "GitSignsAddNr" },
change = { hl = "GitSignsChange", text = "", numhl = "GitSignsChangeNr" },
delete = { hl = "GitSignsDelete", text = "_", numhl = "GitSignsDeleteNr" },
topdelete = { hl = "GitSignsDelete", text = "", numhl = "GitSignsDeleteNr" },
changedelete = { hl = "GitSignsDelete", text = "~", numhl = "GitSignsChangeNr" },
},
word_diff = false,
}