From b61772597f38a7271ea39d8cb46841230f7fb8d1 Mon Sep 17 00:00:00 2001 From: XXiaoA Date: Sun, 15 May 2022 17:30:33 +0800 Subject: [PATCH] fix: `set formatoptions-=cro` doesn't work --- lua/user/options.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/user/options.lua b/lua/user/options.lua index 799aa9d..95eceda 100644 --- a/lua/user/options.lua +++ b/lua/user/options.lua @@ -43,4 +43,4 @@ end vim.cmd "set whichwrap+=<,>,[,],h,l" vim.cmd [[set iskeyword+=-]] -vim.cmd [[set formatoptions-=cro]] -- TODO: this doesn't seem to work +vim.api.nvim_create_autocmd({"FileType"}, {command = "set formatoptions-=cro"})