nvim: make option toggles not verbose
This commit is contained in:
parent
e814da54a9
commit
9fee4373ba
1 changed files with 3 additions and 12 deletions
|
@ -10,20 +10,11 @@ M.toggle_relativenumber = function()
|
|||
vim.wo.number = vim.wo.relativenumber or vim.wo.number
|
||||
end
|
||||
|
||||
M.toggle_list = function()
|
||||
vim.wo.list = not vim.wo.list
|
||||
vim.cmd([[set list?]])
|
||||
end
|
||||
M.toggle_list = function() vim.wo.list = not vim.wo.list end
|
||||
|
||||
M.toggle_wrap = function()
|
||||
vim.wo.wrap = not vim.wo.wrap
|
||||
vim.cmd([[set wrap?]])
|
||||
end
|
||||
M.toggle_wrap = function() vim.wo.wrap = not vim.wo.wrap end
|
||||
|
||||
M.toggle_spell = function()
|
||||
vim.wo.spell = not vim.wo.spell
|
||||
vim.cmd([[set spell?]])
|
||||
end
|
||||
M.toggle_spell = function() vim.wo.spell = not vim.wo.spell end
|
||||
|
||||
M.set_gitcommit_buffer_options = function()
|
||||
vim.bo.textwidth = 72
|
||||
|
|
Loading…
Add table
Reference in a new issue