core|options: Add formatoptions in options | Remove unnecessary autocmd
This commit is contained in:
parent
9021289421
commit
fe9a7b1651
|
@ -42,12 +42,6 @@ autocmd("BufUnload", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Don't auto commenting new lines
|
|
||||||
autocmd("BufEnter", {
|
|
||||||
pattern = "*",
|
|
||||||
command = "set fo-=c fo-=r fo-=o",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- store listed buffers in tab local var
|
-- store listed buffers in tab local var
|
||||||
vim.t.bufs = vim.api.nvim_list_bufs()
|
vim.t.bufs = vim.api.nvim_list_bufs()
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,9 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue