From fb8f30fdb85a59194ee398bbd6b4224eaeadd3dc Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Wed, 7 Jun 2023 04:26:34 -0400 Subject: [PATCH] nvchad rust --- .nvchad-custom/chadrc.lua | 4 ++++ .nvchad-custom/configs/lspconfig.lua | 12 ++++++------ .nvchad-custom/configs/null-ls.lua | 4 +++- .nvchad-custom/mappings.lua | 2 -- .nvchad-custom/plugins.lua | 6 ++++++ 5 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.nvchad-custom/chadrc.lua b/.nvchad-custom/chadrc.lua index fcaee86..fe16c67 100644 --- a/.nvchad-custom/chadrc.lua +++ b/.nvchad-custom/chadrc.lua @@ -10,6 +10,10 @@ M.ui = { hl_override = highlights.override, hl_add = highlights.add, + tabufline = { + enabled = false, + }, + } M.plugins = "custom.plugins" diff --git a/.nvchad-custom/configs/lspconfig.lua b/.nvchad-custom/configs/lspconfig.lua index bd956f4..3cbf9ab 100644 --- a/.nvchad-custom/configs/lspconfig.lua +++ b/.nvchad-custom/configs/lspconfig.lua @@ -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 -- diff --git a/.nvchad-custom/configs/null-ls.lua b/.nvchad-custom/configs/null-ls.lua index a3881e1..f364b11 100644 --- a/.nvchad-custom/configs/null-ls.lua +++ b/.nvchad-custom/configs/null-ls.lua @@ -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, } diff --git a/.nvchad-custom/mappings.lua b/.nvchad-custom/mappings.lua index df5f6db..4b7f48f 100644 --- a/.nvchad-custom/mappings.lua +++ b/.nvchad-custom/mappings.lua @@ -3,8 +3,6 @@ local M = {} M.general = { n = { - [";"] = { ":", "enter command mode", opts = { nowait = true } }, - -- harpoon ["H"] = {function() require("harpoon.ui").toggle_quick_menu() end, "Open Harpoon" }, ["a"] = {function() require("harpoon.mark").add_file() end, "Add file to Harpoon"}, diff --git a/.nvchad-custom/plugins.lua b/.nvchad-custom/plugins.lua index fb9cf8c..cde8ca6 100644 --- a/.nvchad-custom/plugins.lua +++ b/.nvchad-custom/plugins.lua @@ -58,6 +58,12 @@ local plugins = { "theprimeagen/harpoon", }, + { + 'simrat39/rust-tools.nvim' + }, + + -- Disable nvchad plugins + { "tpope/vim-sleuth", lazy = false,