Removing ro
This commit is contained in:
@@ -307,7 +307,6 @@ require('lazy').setup({
|
|||||||
vim.opt.ai = true -- Autoindent
|
vim.opt.ai = true -- Autoindent
|
||||||
vim.opt.updatetime = 50
|
vim.opt.updatetime = 50
|
||||||
vim.mouse = ''
|
vim.mouse = ''
|
||||||
vim.cmd [[set formatoptions-=o]]
|
|
||||||
|
|
||||||
-- Whitespace
|
-- Whitespace
|
||||||
vim.opt.tabstop = 2
|
vim.opt.tabstop = 2
|
||||||
@@ -838,5 +837,14 @@ vim.api.nvim_set_hl(0, "Matchadd_6", { bg = colors.yellow, fg = 0 })
|
|||||||
-- Automatically format
|
-- Automatically format
|
||||||
vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]]
|
vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]]
|
||||||
|
|
||||||
|
-- Because nvim filetypes are stupid ... need to disable formatoptions for all file types
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
pattern = "*",
|
||||||
|
callback = function()
|
||||||
|
vim.opt.formatoptions:remove("r")
|
||||||
|
vim.opt.formatoptions:remove("o")
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|||||||
Reference in New Issue
Block a user