Updating [c and ]c for LSP
This commit is contained in:
parent
e318c61f92
commit
1dfc54f27d
1 changed files with 3 additions and 5 deletions
|
@ -231,8 +231,8 @@ nnoremap <silent> <leader>rn <cmd>lua vim.lsp.buf.rename()<CR>
|
||||||
nnoremap <silent> <leader>ca <cmd>lua vim.lsp.buf.code_action()<CR>
|
nnoremap <silent> <leader>ca <cmd>lua vim.lsp.buf.code_action()<CR>
|
||||||
nnoremap <silent> <leader>q <cmd>lua vim.lsp.diagnostic.set_loclist()<CR>
|
nnoremap <silent> <leader>q <cmd>lua vim.lsp.diagnostic.set_loclist()<CR>
|
||||||
nnoremap <silent> <leader>e <cmd>lua vim.lsp.diagnostic.open_float()<CR>
|
nnoremap <silent> <leader>e <cmd>lua vim.lsp.diagnostic.open_float()<CR>
|
||||||
nnoremap <silent> [c <cmd>lua vim.lsp.diagnostic.goto_prev { wrap = false }<CR>
|
nnoremap <silent> [c <cmd>lua vim.diagnostic.goto_prev { wrap = false }<CR>
|
||||||
nnoremap <silent> ]c <cmd>lua vim.lsp.diagnostic.goto_next { wrap = false }<CR>
|
nnoremap <silent> ]c <cmd>lua vim.diagnostic.goto_next { wrap = false }<CR>
|
||||||
|
|
||||||
" Window movement
|
" Window movement
|
||||||
map <C-j> <C-w>j
|
map <C-j> <C-w>j
|
||||||
|
@ -315,9 +315,7 @@ lsp.zls.setup {
|
||||||
-- texlab = latex language server
|
-- texlab = latex language server
|
||||||
lsp.texlab.setup{}
|
lsp.texlab.setup{}
|
||||||
|
|
||||||
-- Note that metals is totally separate.
|
-- Note that metals is totally separate and doesn't use lspconfig.
|
||||||
-- It's also absurdly slow on a Raspberry Pi, it's only viable for somewhat
|
|
||||||
-- powerful machines (as is Scala dev in general).
|
|
||||||
metals_config = require("metals").bare_config()
|
metals_config = require("metals").bare_config()
|
||||||
|
|
||||||
metals_config.settings = {
|
metals_config.settings = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue