mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-05 18:44:52 +02:00
updates for LSP
This commit is contained in:
parent
e26b5c51ed
commit
795cfed772
3 changed files with 10 additions and 3 deletions
|
@ -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'],
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue