From bf4008358d784b8ea0ba56ff3a08e71f19c0f419 Mon Sep 17 00:00:00 2001 From: Samuel O'Neal Date: Mon, 9 Feb 2026 01:47:59 -0700 Subject: [PATCH] added Comment.nvim; testing removing ability to wrap text --- lua/config/options.lua | 2 +- lua/plugins/editor.lua | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/lua/config/options.lua b/lua/config/options.lua index f093a96..e3abb4b 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -17,7 +17,7 @@ opt.number = true -- Show line numbers opt.relativenumber = true -- Relative line numbers opt.signcolumn = "yes" -- Always show sign column opt.termguicolors = true -- True color support -opt.wrap = true -- Disable line wrap +opt.wrap = false -- Disable line wrap -- Indentation opt.expandtab = true -- Use spaces instead of tabs diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index c541810..f898f6b 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -156,4 +156,38 @@ return { }, }, }, + + -- Help comment and uncomment lines + { + 'numToStr/Comment.nvim', + opts = { + padding = true, + + -- LHS of toggle mappings in NORMAL mode + toggler = { + line = 'gcc', + block = 'gbc', + }, + + -- LHS of operator-pending mappings in NORMAL and VISUAL + opleader = { + line = "gc", + block = "gb", + }, + + -- LHS of extra mappings + extra = { + -- Add comment on the line above + above = 'gcO', + -- Add comment on the line below + below = 'gco', + -- Add comment at the end of line + eol = 'gcA', + }, + mappings = { + basic = true, + extra = true, + }, + }, + }, }