.dotfiles/.config/nvim/lua/plugins/lspconfig.lua
2026-02-26 01:45:57 +02:00

35 lines
711 B
Lua

vim.pack.add({ "https://github.com/neovim/nvim-lspconfig" })
vim.lsp.config("lua_ls", {
settings = {
Lua = {
workspace = {
checkThirdParty = false,
library = {
vim.api.nvim_get_runtime_file("", true),
"${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 = { "vim", "require" } },
hint = { enable = true },
},
},
})
vim.lsp.enable({
"stylua",
"biome",
"tailwindcss",
"html",
"cssls",
"emmet_language_server",
"lua_ls",
"tsgo",
"codebook",
})