install.fairie/home/dot_local/share/nvchad/configs/lspconfig.lua

13 lines
374 B
Lua
Raw Normal View History

2023-07-17 13:40:40 -07:00
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