mirror of
https://github.com/Dannecron/Dannecron.git
synced 2025-12-26 00:32:35 +03:00
add nvchad-config
This commit is contained in:
33
nvchad-config/configs/lspconfig.lua
Normal file
33
nvchad-config/configs/lspconfig.lua
Normal 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}
|
||||
|
||||
Reference in New Issue
Block a user