rearrange stuff

This commit is contained in:
Adithya 2024-02-13 23:39:14 +05:30
parent 242b862cdc
commit b60feb8dd2
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -2,15 +2,20 @@ require("lspkind").init({
mode = "symbol_text",
})
local vim_lsp_capabilities = vim.lsp.protocol.make_client_capabilities()
local lsp_capabilities = vim.tbl_deep_extend(
"force",
require("cmp_nvim_lsp").default_capabilities(),
vim.lsp.protocol.make_client_capabilities(),
vim_lsp_capabilities,
{ workspace = { didChangeConfiguration = { dynamicRegistration = true } } }
)
local lspconfig = require("lspconfig")
lspconfig.gopls.setup({
capabilities = lsp_capabilities,
})
lspconfig.lua_ls.setup({
capabilities = lsp_capabilities,
on_init = function(client)
@ -39,10 +44,6 @@ lspconfig.nixd.setup({
capabilities = lsp_capabilities,
})
lspconfig.gopls.setup({
capabilities = lsp_capabilities,
})
vim.keymap.set("n", "<F2>", vim.diagnostic.goto_prev)
vim.keymap.set("n", "<F3>", vim.diagnostic.goto_next)