From 795cfed7724ff4b753d5330310845360e952ac63 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 15 Mar 2021 23:21:59 -0400 Subject: updates for LSP --- lua/nv-whichkey/init.vim | 6 +++--- lua/utils.lua | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/nv-whichkey/init.vim b/lua/nv-whichkey/init.vim index cc55de2f..6a28c8fe 100644 --- a/lua/nv-whichkey/init.vim +++ b/lua/nv-whichkey/init.vim @@ -181,14 +181,14 @@ let g:which_key_map.G = { " l is for language server protocol let g:which_key_map.l = { \ 'name' : '+lsp' , - \ 'a' : [':Lspsaga code_action' , 'quickfix'], + \ 'a' : [':Lspsaga code_action' , 'code action'], \ 'A' : [':Lspsaga range_code_action' , 'selected action'], \ 'd' : [':Telescope lsp_document_diagnostics' , 'document diagnostics'], \ 'D' : [':Telescope lsp_workspace_diagnostics', 'workspace diagnostics'], \ 'f' : [':LspFormatting' , 'format'], \ 'H' : [':Lspsaga signature_help' , 'signature_help'], - \ 'I' : [':LspInfo' , 'lsp_info'], - \ 'l' : [':Lspsaga lsp_finder' , 'lsp_finder'], + \ 'I' : [':LspInfo' , 'lsp info'], + \ 'l' : [':Lspsaga lsp_finder' , 'lsp finder'], \ 'L' : [':Lspsaga show_line_diagnostics' , 'line_diagnostics'], \ 'o' : [':Vista!!' , 'outline'], \ 'p' : [':Lspsaga preview_definition' , 'preview definition'], diff --git a/lua/utils.lua b/lua/utils.lua index 22fe415a..bbac366e 100644 --- a/lua/utils.lua +++ b/lua/utils.lua @@ -27,9 +27,11 @@ define_augroups( {'BufRead', '*', 'setlocal formatoptions-=c formatoptions-=r formatoptions-=o'}, {'BufNewFile', '*', 'setlocal formatoptions-=c formatoptions-=r formatoptions-=o'}, {'FileType', 'java', 'luafile ~/.config/nvim/lua/lsp/java-ls.lua'}, + {'FileType', 'java', 'nnoremap ca lua require(\'jdtls\').code_action()'}, }, } ) + -- Add this to lightbulb, java makes this annoying tho -- autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_lightbulb() -- cgit v1.2.3