Compare commits

..

No commits in common. "b571c69dc31fc0f14ff819bec51eff1309c48a2b" and "dcebf4a7f54b67a5df4d9f1ad5f99f99245a4a53" have entirely different histories.

2 changed files with 26 additions and 6 deletions

View File

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

View File

@ -90,6 +90,29 @@ 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' local cmp = require'cmp'
cmp.setup({ cmp.setup({
window = { window = {