aboutsummaryrefslogtreecommitdiff
path: root/home/jack/.config/nvchad/configs/lspconfig.lua
blob: 349c191d3d462fe519c60bda69c47793edea603a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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" }
local servers = { "pylsp", "clangd" }

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