diff options
author | Chris <[email protected]> | 2021-03-15 23:21:59 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-03-15 23:21:59 -0400 |
commit | 795cfed7724ff4b753d5330310845360e952ac63 (patch) | |
tree | 7fa51b0a40f5b661f9af4bb10569dc4092c6a01d | |
parent | e26b5c51ed152ea1047bd94093f514d95b167a3e (diff) |
updates for LSP
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | lua/nv-whichkey/init.vim | 6 | ||||
-rw-r--r-- | lua/utils.lua | 2 |
3 files changed, 10 insertions, 3 deletions
@@ -48,6 +48,11 @@ $HOME/.config/nvim/lua/nv-vscode/init.vim - toggle virtual text diagnostics **LOW PRIORITY** +- wrap all whichkey lsp in functions +- make java code actions prettier +- figure out how to format java +- formatting using efm server for python +- setup junit tests for java - add git signs to whichkey (This will require wrapping in Lua commands) - add lots of lsp - neovim lightbulb config 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 <Cmd>lua require(\'jdtls\').code_action()<CR>'}, }, } ) + -- Add this to lightbulb, java makes this annoying tho -- autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_lightbulb() |