feat(nvim): add a mapping for wrapping text

This commit is contained in:
Oliver Davies 2022-01-02 10:26:14 +00:00
parent 6e4a400002
commit 0d68d51ed1

View file

@ -29,6 +29,10 @@ local function set_key_mappings()
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
map('n', '<Leader>x', ':!chmod +x %<Cr>', options)
@ -91,6 +95,7 @@ local function set_vim_o()
syntax = 'on',
tabstop = 2,
termguicolors = true,
textwidth = 0,
updatetime = 1000,
wrap = true,
}