added Comment.nvim; testing removing ability to wrap text

This commit is contained in:
2026-02-09 01:47:59 -07:00
parent d05390b2e7
commit bf4008358d
2 changed files with 35 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ opt.number = true -- Show line numbers
opt.relativenumber = true -- Relative line numbers opt.relativenumber = true -- Relative line numbers
opt.signcolumn = "yes" -- Always show sign column opt.signcolumn = "yes" -- Always show sign column
opt.termguicolors = true -- True color support opt.termguicolors = true -- True color support
opt.wrap = true -- Disable line wrap opt.wrap = false -- Disable line wrap
-- Indentation -- Indentation
opt.expandtab = true -- Use spaces instead of tabs opt.expandtab = true -- Use spaces instead of tabs

View File

@@ -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,
},
},
},
} }