From 993ddf1e703c737f1737d0a153674d95d7b879aa Mon Sep 17 00:00:00 2001 From: Brad Clawsie Date: Sat, 8 Nov 2025 10:32:16 -0600 Subject: rm commenting plugin --- nvim/init.lua | 46 +++------------------------------------------- 1 file changed, 3 insertions(+), 43 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index 980d45d..9e07c23 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -60,56 +60,16 @@ require("lazy").setup({ end, }, - { - 'windwp/nvim-autopairs', - event = "InsertEnter", - opts = {} - }, - { 'kylechui/nvim-surround', version = "*", event = "VeryLazy", }, - -- [[ Comment.nvim Keymaps ]] - -- - -- This plugin provides "operators" that work with motions. - -- 'gc' is for line comments (e.g., //) - -- 'gb' is for block comments (e.g., /* ... */) - - -- --- Normal Mode (Line Comments) --- - -- gc + [motion] - -- gcc - Toggle comment for the current line - -- gc5j - Toggle comment for the 5 lines below - -- gcG - Toggle comment from cursor to end of file - -- gcap - Toggle comment for the current paragraph - -- gcaw - Toggle comment for the current word - - -- --- Visual Mode (Line Comments) --- - -- Select text (v, V, Ctrl-v) and press 'gc' - -- gc - Toggles line comments for each line in the visual selection. - -- (This keymap is often set manually in the config, as shown in the plugin setup) - - -- --- Normal Mode (Block Comments) --- - -- gb + [motion] - -- gbc - Toggle block comment for the current line - -- gbap - Toggle block comment for the current paragraph (as a single block) - -- gbiw - Toggle block comment for the inner word - - -- --- Visual Mode (Block Comments) --- - -- Select text (v, V, Ctrl-v) and press 'gb' - -- gb - Adds a single block comment around the entire visual selection. - -- (e.g., /* selected text */) - { - 'numToStr/Comment.nvim', - event = "VeryLazy", - opts = {}, - config = function(_, opts) - require('Comment').setup(opts) - vim.keymap.set('v', 'gc', '(Comment.nvim)', { silent = true, desc = "Comment visual selection" }) - end + 'windwp/nvim-autopairs', + event = "InsertEnter", + config = true }, }) -- cgit v1.2.3