init.lua/lua/plugins/lsp.lua
2025-11-03 09:59:25 +01:00

32 lines
604 B
Lua

vim.pack.add({
{ src = "https://github.com/folke/lazydev.nvim" }
})
-- Enable some settings globally
vim.lsp.config("*", {
-- allow for multiline token support
capabilities = {
textDocument = {
semanticTokens = {
multilineTokenSupport = true,
}
}
},
-- make .git always be a root marker
root_markers = { '.git' },
})
-- enable specific language servers
vim.lsp.enable({
"nixd",
"lua_ls",
"jsonls",
"marksman",
"gopls",
})
-- diagnostic settings
vim.diagnostic.config({ virtual_text = true })
-- fix annoying lua lsp errors
require("lazydev").setup()