refactor(nvim): manage Neovim with Home Manager
This commit is contained in:
parent
83c43d07df
commit
5630466780
42 changed files with 5 additions and 0 deletions
31
config/neovim/after/plugin/gitsigns.lua
Normal file
31
config/neovim/after/plugin/gitsigns.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
local colorbuddy_status_ok, colorbuddy = pcall(require, "colorbuddy")
|
||||
if not colorbuddy_status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
local gitsigns_status_ok, gitsigns = pcall(require, "gitsigns")
|
||||
if not gitsigns_status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
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)
|
||||
|
||||
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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue