.dotfiles/.config/nvim/lua/plugins/lspconfig.lua
2026-03-01 22:00:21 +02:00

35 lines
693 B
Lua

vim.pack.add({ "https://github.com/neovim/nvim-lspconfig" })
vim.lsp.config("lua_ls", {
settings = {
Lua = {
workspace = {
checkThirdParty = false,
library = {
vim.env.VIMRUNTIME,
"${3rd}/luv/library",
},
},
runtime = {
version = "LuaJIT",
},
format = { enable = false },
telemetry = { enable = false },
-- NOTE: toggle below to ignore Lua_LS's noisy `missing-fields` warnings
diagnostics = { disable = { "missing-fields" }, globals = { "require", "ipairs" } },
hint = { enable = true },
},
},
})
vim.lsp.enable({
"stylua",
"biome",
"tailwindcss",
"html",
"cssls",
"emmet_language_server",
"lua_ls",
"tsgo",
"codebook",
})