add nvchad-config

This commit is contained in:
2024-03-07 15:46:59 +07:00
parent c804fb8d2b
commit 2af9ff9194
9 changed files with 295 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
-- if you just want default config for the servers then put them in a table
local servers = {
-- front-end
"html",
"cssls",
"tsserver",
-- back-end
"gopls",
-- static files
"jsonls",
"yamlls",
-- docker
"dockerls",
"docker_compose_language_service",
}
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
capabilities = capabilities,
}
end
lspconfig.intelephense.setup{
filetypes = { 'php', 'ctp' }
}
-- lspconfig.pyright.setup { blabla}