feat(nvim): use lewis6991/gitsigns.nvim

Replace airblade/vim-gitgutter with lewis6991/gitsigns.
This commit is contained in:
Oliver Davies 2021-10-14 09:00:00 +01:00
parent bbb0e6b465
commit ba5b30b136
3 changed files with 25 additions and 1 deletions

View file

@ -3,4 +3,5 @@ require("colorbuddy").colorscheme("gruvbuddy")
require "opdavies.plugins.completion"
require "opdavies.plugins.indent-blankline"
require "opdavies.plugins.lsp"
require "opdavies.plugins.signs"
require "opdavies.plugins.treesitter"

View file

@ -0,0 +1,23 @@
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,
}

View file

@ -1,10 +1,10 @@
" Utilities
Plug 'airblade/vim-gitgutter'
Plug 'cakebaker/scss-syntax.vim'
Plug 'christoomey/vim-sort-motion'
Plug 'christoomey/vim-tmux-navigator'
Plug 'editorconfig/editorconfig-vim'
Plug 'icatalina/vim-case-change'
Plug 'lewis6991/gitsigns.nvim'
Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'machakann/vim-highlightedyank'
Plug 'mattn/emmet-vim'