feat(nvim): use lewis6991/gitsigns.nvim
Replace airblade/vim-gitgutter with lewis6991/gitsigns.
This commit is contained in:
parent
bbb0e6b465
commit
ba5b30b136
|
@ -3,4 +3,5 @@ require("colorbuddy").colorscheme("gruvbuddy")
|
||||||
require "opdavies.plugins.completion"
|
require "opdavies.plugins.completion"
|
||||||
require "opdavies.plugins.indent-blankline"
|
require "opdavies.plugins.indent-blankline"
|
||||||
require "opdavies.plugins.lsp"
|
require "opdavies.plugins.lsp"
|
||||||
|
require "opdavies.plugins.signs"
|
||||||
require "opdavies.plugins.treesitter"
|
require "opdavies.plugins.treesitter"
|
||||||
|
|
23
nvim/.config/nvim/lua/opdavies/plugins/signs.lua
Normal file
23
nvim/.config/nvim/lua/opdavies/plugins/signs.lua
Normal 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,
|
||||||
|
}
|
|
@ -1,10 +1,10 @@
|
||||||
" Utilities
|
" Utilities
|
||||||
Plug 'airblade/vim-gitgutter'
|
|
||||||
Plug 'cakebaker/scss-syntax.vim'
|
Plug 'cakebaker/scss-syntax.vim'
|
||||||
Plug 'christoomey/vim-sort-motion'
|
Plug 'christoomey/vim-sort-motion'
|
||||||
Plug 'christoomey/vim-tmux-navigator'
|
Plug 'christoomey/vim-tmux-navigator'
|
||||||
Plug 'editorconfig/editorconfig-vim'
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
Plug 'icatalina/vim-case-change'
|
Plug 'icatalina/vim-case-change'
|
||||||
|
Plug 'lewis6991/gitsigns.nvim'
|
||||||
Plug 'lukas-reineke/indent-blankline.nvim'
|
Plug 'lukas-reineke/indent-blankline.nvim'
|
||||||
Plug 'machakann/vim-highlightedyank'
|
Plug 'machakann/vim-highlightedyank'
|
||||||
Plug 'mattn/emmet-vim'
|
Plug 'mattn/emmet-vim'
|
||||||
|
|
Loading…
Reference in a new issue