enable bashls and rust_analyzer
This commit is contained in:
parent
4fe46bddaa
commit
6fcbea0ff0
1 changed files with 8 additions and 0 deletions
|
@ -14,6 +14,10 @@ local lsp_capabilities = vim.tbl_deep_extend(
|
|||
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
lspconfig.bashls.setup({
|
||||
capabilities = lsp_capabilities,
|
||||
})
|
||||
|
||||
lspconfig.gopls.setup({
|
||||
capabilities = lsp_capabilities,
|
||||
})
|
||||
|
@ -50,6 +54,10 @@ lspconfig.nil_ls.setup({
|
|||
capabilities = lsp_capabilities,
|
||||
})
|
||||
|
||||
lspconfig.rust_analyzer.setup({
|
||||
capabilities = lsp_capabilities,
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "<F2>", vim.diagnostic.goto_prev)
|
||||
vim.keymap.set("n", "<F3>", vim.diagnostic.goto_next)
|
||||
|
||||
|
|
Loading…
Reference in a new issue