32 lines
604 B
Lua
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()
|