nvchad rust

This commit is contained in:
2023-06-07 04:26:34 -04:00
parent 5e81732a7c
commit fb8f30fdb8
5 changed files with 19 additions and 9 deletions

View File

@@ -1,17 +1,17 @@
local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
local lspconfig = require("lspconfig")
-- if you just want default config for the servers then put them in a table
local servers =
{ "html", "cssls", "tsserver", "clangd", "docker_compose_language_service", "dockerls", "rust_analyzer", "pyright" }
{ "html", "cssls", "tsserver", "clangd", "docker_compose_language_service", "dockerls", "rust_analyzer", "pyright" }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
capabilities = capabilities,
}
lspconfig[lsp].setup({
on_attach = on_attach,
capabilities = capabilities,
})
end
--

View File

@@ -20,12 +20,14 @@ local sources = {
b.formatting.black.with({
extra_args = {"--line-length=82"}
})
}),
-- b.diagnostics.pylint.with({
-- diagnostic_config = { underline = false, virtual_text = false, signs = false },
-- method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
-- }),
b.formatting.rustfmt,
}