enable bashls and rust_analyzer

This commit is contained in:
Adithya 2024-02-14 22:01:42 +05:30
parent 4fe46bddaa
commit 6fcbea0ff0
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -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)