summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouie <louie@example.com>2022-06-28 18:52:42 -0700
committerlouie <louie@example.com>2022-06-28 18:52:42 -0700
commited4b3c8a653d781a2428359fc29de559a10c6317 (patch)
tree8da383a5bf2777c320d1546bf571440d9419e431
parentd61e2baf302e1e2226b6fb48216baaace0596335 (diff)
Disable automatic comment insertion
-rw-r--r--lua/user/options.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/user/options.lua b/lua/user/options.lua
index 0059e8c..9a43c86 100644
--- a/lua/user/options.lua
+++ b/lua/user/options.lua
@@ -5,6 +5,7 @@ vim.opt.number = true --number rows
vim.opt.shiftwidth = 4 --set shiftwidth
vim.opt.smartindent = true --auto-indent
vim.opt.tabstop = 4 --set tab length
+vim.cmd("autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o") --disable automatic comment insertion
-- Fold Settings
vim.opt.foldmethod = "indent" --enable fold detection