aboutsummaryrefslogtreecommitdiff
path: root/.config/nvchad/configs/lspconfig.lua
blob: 22e17288b108a86e6ed86bffadbc040881ac9a55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities

local lspconfig = require "lspconfig"

local servers = { "cssls", "pylsp", "clangd" }

for _, lsp in ipairs(servers) do
  lspconfig[lsp].setup {
    on_attach = on_attach,
    capabilities = capabilities,
  }
end