diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2021-12-08 10:52:16 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2021-12-08 10:52:16 +0000 |
| commit | 956df69d7496081db5e7b3621a0bcc7b9d7f7dfc (patch) | |
| tree | 2c1de01541d70d1cbcb59974e42102440359f153 /nvim/lua/git.lua | |
| parent | 1eca5dc0fe3648341e1707efc811162fc5056888 (diff) | |
move to .config folder
Diffstat (limited to 'nvim/lua/git.lua')
| -rw-r--r-- | nvim/lua/git.lua | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/nvim/lua/git.lua b/nvim/lua/git.lua deleted file mode 100644 index 2f9cbc4..0000000 --- a/nvim/lua/git.lua +++ /dev/null @@ -1,29 +0,0 @@ -require('gitsigns').setup { - signs = { - add = {hl = 'GitSignsAdd' , text = '│', numhl='GitSignsAddNr' , linehl='GitSignsAddLn'}, - change = {hl = 'GitSignsChange', text = '│', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'}, - delete = {hl = 'GitSignsDelete', text = '_', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'}, - topdelete = {hl = 'GitSignsDelete', text = '‾', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'}, - changedelete = {hl = 'GitSignsChange', text = '~', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'}, - }, - keymaps = { - -- Default keymap options - noremap = true, - - ['n ]c'] = { expr = true, "&diff ? ']c' : '<cmd>lua require\"gitsigns.actions\".next_hunk()<CR>'"}, - ['n [c'] = { expr = true, "&diff ? '[c' : '<cmd>lua require\"gitsigns.actions\".prev_hunk()<CR>'"}, - - ['n hs'] = '<cmd>lua require"gitsigns".stage_hunk()<CR>', - ['v hs'] = '<cmd>lua require"gitsigns".stage_hunk({vim.fn.line("."), vim.fn.line("v")})<CR>', - ['n hS'] = '<cmd>lua require"gitsigns".stage_buffer()<CR>', - ['n hu'] = '<cmd>lua require"gitsigns".undo_stage_hunk()<CR>', - ['n hp'] = '<cmd>lua require"gitsigns".preview_hunk()<CR>', - ['n hB'] = '<cmd>lua require"gitsigns".blame_line(true)<CR>', - }, - signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` - numhl = true, -- Toggle with `:Gitsigns toggle_numhl` - watch_gitdir = { - interval = 1000, - follow_files = true - }, -} |
