Compare commits

..

2 Commits

Author SHA1 Message Date
b571c69dc3
nvim: add git-gutter plugin 2023-07-05 20:18:32 -04:00
4c99ee4f02
nvim: remove leap plugin 2023-07-05 19:57:34 -04:00
2 changed files with 6 additions and 26 deletions

View File

@ -100,11 +100,14 @@ endif
" URL motions
Plug 'axieax/urlview.nvim'
" fancy motions
Plug 'ggandor/leap.nvim'
Plug 'ledger/vim-ledger'
" adds git diffs to the gutter (side bar thing)
Plug 'airblade/vim-gitgutter'
highlight GitGutterAdd ctermfg=green
highlight GitGutterChange ctermfg=yellow
highlight GitGutterDelete ctermfg=red
call plug#end()
if $SYSTEM_PROFILE == "DEFAULT"

View File

@ -90,29 +90,6 @@ require('dressing').setup({
}
})
-- fancy motions (leap.nvim)
vim.keymap.set({'n', 'x', 'o'}, 'f', '<Plug>(leap-forward-to)')
vim.keymap.set({'n', 'x', 'o'}, 'F', '<Plug>(leap-backward-to)')
vim.keymap.set(
{'n', 'x', 'o'}, 't',
function ()
require("leap").leap { offset = 2 }
end
)
vim.keymap.set(
{'n', 'x', 'o'}, 'T',
function ()
require("leap").leap { backward = true, offset = 2 }
end
)
require('leap').opts.safe_labels = {
"a", "s", "d", "f", "g", "h", "j", "k", "l"
}
require('leap').opts.labels = { "a", "s", "d",
"f", "k", "l", "h", "o", "d", "w", "e", "m",
"u", "v", "r", "g", "c", "x", "z",
}
local cmp = require'cmp'
cmp.setup({
window = {