blob: 3385a4b9b253ddfd6790512c89dadf8fa25b8bfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
local on_attach = require("nvchad.configs.lspconfig").on_attach
local on_init = require("nvchad.configs.lspconfig").on_init
local capabilities = require("nvchad.configs.lspconfig").capabilities
local lspconfig = require("lspconfig")
local servers = { "pylsp", "clangd", "cssls", "tinymist" }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup({
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
})
end
|