nvchad rust
This commit is contained in:
@@ -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
|
||||
|
||||
--
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user