nvim: add leap.nvim
This commit is contained in:
parent
e3a77a5ac0
commit
1100fc0755
@ -9,6 +9,8 @@ set shell=/bin/sh
|
|||||||
|
|
||||||
hi Search cterm=NONE ctermfg=white ctermbg=blue
|
hi Search cterm=NONE ctermfg=white ctermbg=blue
|
||||||
hi StatusLine ctermbg=NONE cterm=italic
|
hi StatusLine ctermbg=NONE cterm=italic
|
||||||
|
hi SignColumn ctermbg=NONE
|
||||||
|
|
||||||
|
|
||||||
autocmd InsertEnter * hi StatusLine cterm=bold
|
autocmd InsertEnter * hi StatusLine cterm=bold
|
||||||
autocmd InsertLeave * hi StatusLine cterm=italic
|
autocmd InsertLeave * hi StatusLine cterm=italic
|
||||||
@ -156,16 +158,19 @@ if has('python3')
|
|||||||
let g:UltiSnipsJumpForwardTrigger="<c-m>"
|
let g:UltiSnipsJumpForwardTrigger="<c-m>"
|
||||||
let g:UltiSnipsJumpBackwardTrigger="<c-b>"
|
let g:UltiSnipsJumpBackwardTrigger="<c-b>"
|
||||||
let g:UltiSnipsSnippetDirectories=[$HOME.'/.config/nvim/ultisnips/']
|
let g:UltiSnipsSnippetDirectories=[$HOME.'/.config/nvim/ultisnips/']
|
||||||
|
|
||||||
|
" my devices without python3 probably don't need these
|
||||||
|
Plug 'neovim/nvim-lspconfig'
|
||||||
|
Plug 'nvim-lua/completion-nvim'
|
||||||
|
Plug 'nvim-lua/lsp-status.nvim'
|
||||||
|
Plug 'stevearc/dressing.nvim'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
Plug 'nvim-treesitter/nvim-treesitter'
|
Plug 'nvim-treesitter/nvim-treesitter'
|
||||||
|
|
||||||
Plug 'axieax/urlview.nvim'
|
Plug 'axieax/urlview.nvim'
|
||||||
|
|
||||||
Plug 'neovim/nvim-lspconfig'
|
Plug 'ggandor/leap.nvim'
|
||||||
Plug 'nvim-lua/completion-nvim'
|
|
||||||
Plug 'nvim-lua/lsp-status.nvim'
|
|
||||||
Plug 'stevearc/dressing.nvim'
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
@ -86,3 +86,14 @@ require('dressing').setup({
|
|||||||
insert_only = false,
|
insert_only = false,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- 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)')
|
||||||
|
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", "b",
|
||||||
|
"u", "y", "v", "r", "g", "t", "c", "x", "/", "z",
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user