added Comment.nvim; testing removing ability to wrap text
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user