HELLO NvChad

This commit is contained in:
2026-09-07 02:35:31 -04:00
committed by thread
parent add44b952d
commit 649dab28c8
11 changed files with 428 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
-- local util = require "lspconfig/util"
-- if you just want default config for the servers then put them in a table
local servers = { "html", "cssls", "tsserver", "clangd" }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
capabilities = capabilities,
}
end
-- lspconfig.rust_analyzer.setup({
-- on_attach = on_attach,
-- capabilities = capabilities,
-- filetypes = {"rust"},
-- root_dir = util.root_pattern("Cargo.toml"),
-- settings = {},
-- ['rust-analyzer'] = {
-- cargo = {
-- allFeatures = true,
-- }
-- }
-- })
--
-- lspconfig.pyright.setup { blabla}