an autocmd can be used for formatoptions and avoid using bw, read the convo at 39c42ca2bf (r82388570)
This commit is contained in:
parent
696559863b
commit
bf827e0ebd
2 changed files with 1 additions and 4 deletions
|
@ -55,9 +55,6 @@ opt.updatetime = 250
|
||||||
-- when cursor reaches end/beginning of line
|
-- when cursor reaches end/beginning of line
|
||||||
opt.whichwrap:append "<>[]hl"
|
opt.whichwrap:append "<>[]hl"
|
||||||
|
|
||||||
-- auto-wrap comments, don't auto insert comment on o/O and enter
|
|
||||||
opt.formatoptions:remove "cro"
|
|
||||||
|
|
||||||
g.mapleader = " "
|
g.mapleader = " "
|
||||||
|
|
||||||
-- disable some builtin vim plugins
|
-- disable some builtin vim plugins
|
||||||
|
|
|
@ -9,7 +9,7 @@ M.close_buffer = function(bufnr)
|
||||||
else
|
else
|
||||||
bufnr = bufnr or api.nvim_get_current_buf()
|
bufnr = bufnr or api.nvim_get_current_buf()
|
||||||
require("core.utils").tabuflinePrev()
|
require("core.utils").tabuflinePrev()
|
||||||
vim.cmd("silent! confirm bd" .. bufnr)
|
vim.cmd("confirm bd" .. bufnr)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue