feat(nvim): add a mapping for wrapping text
This commit is contained in:
parent
6e4a400002
commit
0d68d51ed1
|
@ -29,6 +29,10 @@ local function set_key_mappings()
|
||||||
|
|
||||||
map('n', '<Leader>so', ':luafile ~/.config/nvim/init.lua<Cr>', options)
|
map('n', '<Leader>so', ':luafile ~/.config/nvim/init.lua<Cr>', options)
|
||||||
|
|
||||||
|
-- Format paragraphs to an 80 character line length.
|
||||||
|
map('n', '<Leader>g', 'gqap', options)
|
||||||
|
map('x', '<Leader>g', 'gqa', options)
|
||||||
|
|
||||||
-- Make the current file executable
|
-- Make the current file executable
|
||||||
map('n', '<Leader>x', ':!chmod +x %<Cr>', options)
|
map('n', '<Leader>x', ':!chmod +x %<Cr>', options)
|
||||||
|
|
||||||
|
@ -91,6 +95,7 @@ local function set_vim_o()
|
||||||
syntax = 'on',
|
syntax = 'on',
|
||||||
tabstop = 2,
|
tabstop = 2,
|
||||||
termguicolors = true,
|
termguicolors = true,
|
||||||
|
textwidth = 0,
|
||||||
updatetime = 1000,
|
updatetime = 1000,
|
||||||
wrap = true,
|
wrap = true,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue