nvchad rust

This commit is contained in:
Andrei Stoica 2023-06-07 04:26:34 -04:00
parent 58bd865aa3
commit e89461885d
5 changed files with 19 additions and 9 deletions

View File

@ -10,6 +10,10 @@ M.ui = {
hl_override = highlights.override, hl_override = highlights.override,
hl_add = highlights.add, hl_add = highlights.add,
tabufline = {
enabled = false,
},
} }
M.plugins = "custom.plugins" M.plugins = "custom.plugins"

View File

@ -1,17 +1,17 @@
local on_attach = require("plugins.configs.lspconfig").on_attach local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities 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 -- if you just want default config for the servers then put them in a table
local servers = 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 for _, lsp in ipairs(servers) do
lspconfig[lsp].setup { lspconfig[lsp].setup({
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,
} })
end end
-- --

View File

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

View File

@ -3,8 +3,6 @@ local M = {}
M.general = { M.general = {
n = { n = {
[";"] = { ":", "enter command mode", opts = { nowait = true } },
-- harpoon -- harpoon
["H"] = {function() require("harpoon.ui").toggle_quick_menu() end, "Open Harpoon" }, ["H"] = {function() require("harpoon.ui").toggle_quick_menu() end, "Open Harpoon" },
["<leader>a"] = {function() require("harpoon.mark").add_file() end, "Add file to Harpoon"}, ["<leader>a"] = {function() require("harpoon.mark").add_file() end, "Add file to Harpoon"},

View File

@ -58,6 +58,12 @@ local plugins = {
"theprimeagen/harpoon", "theprimeagen/harpoon",
}, },
{
'simrat39/rust-tools.nvim'
},
-- Disable nvchad plugins
{ {
"tpope/vim-sleuth", "tpope/vim-sleuth",
lazy = false, lazy = false,