From 3e9162e4a7852c60f2d60287ec34018ddb8ae1bd Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 18 Oct 2024 13:08:38 +0200 Subject: Remove comment plugin nvim --- config/nvim/lua/plugins.lua | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'config/nvim/lua/plugins.lua') diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 69ee677..7a58efb 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -234,15 +234,20 @@ return require("packer").startup(function() "mrcjkb/rustaceanvim", ft = {"rust"}, config = function() + -- require("rustaceanvim") -- to toggle inlay hints -- vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) - -- vim.g.rustaceanvim.server.on_attach = on_attach vim.diagnostic.config { signs = false, update_in_insert = false, } - -- require("rustaceanvim") - -- vim.g.rustaceanvim.server.on_attach = on_attach + vim.g.rustfmt_autosave_if_config_present = 1 + -- vim.g.rustaceanvim.server.on_attach = function(_, bufnr) + -- local opts = { noremap = true, silent = true } + -- local map = function(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end + -- map("n", "me", "RustLsp expandMacro", opts) + -- map("n", "d", "RustLsp renderDiagnostic", opts) + -- end end, } @@ -362,14 +367,6 @@ return require("packer").startup(function() end } - -- comment text objects - use { - "numToStr/Comment.nvim", - config = function() - require("Comment").setup() - end - } - -- gruvbox color scheme use { "ellisonleao/gruvbox.nvim", -- cgit