diff options
Diffstat (limited to 'init.vim')
-rw-r--r-- | init.vim | 40 |
1 files changed, 21 insertions, 19 deletions
@@ -68,6 +68,27 @@ else luafile ~/.config/nvim/lua/lsp/vim-ls.lua luafile ~/.config/nvim/lua/lsp/yaml-ls.lua " https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md + + " TODO highlight groups for native LSP diagnostics + " add back other docs for compe + nnoremap <silent> K <cmd>lua require('lspsaga.hover').render_hover_doc()<CR> + + " -- scroll down hover doc or scroll in definition preview + nnoremap <silent> <C-f> <cmd>lua require('lspsaga.action').smart_scroll_with_saga(1)<CR> + " -- scroll up hover doc + nnoremap <silent> <C-b> <cmd>lua require('lspsaga.action').smart_scroll_with_saga(-1)<CR> + " signature + nnoremap <silent> gs <cmd>lua require('lspsaga.signaturehelp').signature_help()<CR> + + + " Lightbulb + autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_lightbulb() + + "TODO + " fix space and tab triggering completion all the time + " autoimport jsx + " snippets + " https://github.com/mfussenegger/nvim-jdtls endif source $HOME/.config/nvim/plug-config/quickscope.vim @@ -80,22 +101,3 @@ endif inoremap <expr> <c-j> ("\<C-n>") inoremap <expr> <c-k> ("\<C-p>") -" TODO highlight groups for native LSP diagnostics -" add back other docs for compe -nnoremap <silent> K <cmd>lua require('lspsaga.hover').render_hover_doc()<CR> - -" -- scroll down hover doc or scroll in definition preview -nnoremap <silent> <C-f> <cmd>lua require('lspsaga.action').smart_scroll_with_saga(1)<CR> -" -- scroll up hover doc -nnoremap <silent> <C-b> <cmd>lua require('lspsaga.action').smart_scroll_with_saga(-1)<CR> -" signature -nnoremap <silent> gs <cmd>lua require('lspsaga.signaturehelp').signature_help()<CR> - - -" Lightbulb -autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_lightbulb() - -"TODO -" fix space and tab triggering completion all the time -" autoimport jsx -" snippets |