diff --git a/src/.config/nvim/init.vim b/src/.config/nvim/init.vim index 332ac29..dba1907 100755 --- a/src/.config/nvim/init.vim +++ b/src/.config/nvim/init.vim @@ -9,6 +9,8 @@ set shell=/bin/sh hi Search cterm=NONE ctermfg=white ctermbg=blue hi StatusLine ctermbg=NONE cterm=italic +hi SignColumn ctermbg=NONE + autocmd InsertEnter * hi StatusLine cterm=bold autocmd InsertLeave * hi StatusLine cterm=italic @@ -156,16 +158,19 @@ if has('python3') let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" 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 Plug 'nvim-treesitter/nvim-treesitter' Plug 'axieax/urlview.nvim' -Plug 'neovim/nvim-lspconfig' -Plug 'nvim-lua/completion-nvim' -Plug 'nvim-lua/lsp-status.nvim' -Plug 'stevearc/dressing.nvim' +Plug 'ggandor/leap.nvim' call plug#end() diff --git a/src/.config/nvim/lua/init.lua b/src/.config/nvim/lua/init.lua index 600bde7..d760ffb 100644 --- a/src/.config/nvim/lua/init.lua +++ b/src/.config/nvim/lua/init.lua @@ -86,3 +86,14 @@ require('dressing').setup({ insert_only = false, } }) + +-- fancy motions (leap.nvim) +vim.keymap.set({'n', 'x', 'o'}, 'f', '(leap-forward-to)') +vim.keymap.set({'n', 'x', 'o'}, 'F', '(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", +}