install.fairie/home/dot_local/share/nvchad/configs/lspconfig.lua
Brian Zalewski 27e3cd3388 Latest
2023-07-17 20:40:40 +00:00

13 lines
No EOL
374 B
Lua

local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
local servers = { "html", "cssls", "tsserver", "astro", "tailwindcss" }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
capabilities = capabilities,
}
end