Skip to content

Commit dfa808c

Browse files
committed
avoid auto line break on comments
1 parent 89361f7 commit dfa808c

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

lua/autocmds.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ vim.filetype.add({
3333
[".zshenv"] = "sh",
3434
},
3535
})
36+
37+
-- Disable automatic line breaks on comments
38+
vim.api.nvim_create_autocmd("FileType", {
39+
pattern = "*",
40+
callback = function()
41+
vim.opt_local.formatoptions:remove("c")
42+
end,
43+
})

lua/plugins/init.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ if not ok then
1818
end
1919

2020
local theme = require("theme")
21-
2221
local plugins = {
2322
---- UI
2423
theme.get_active_theme(),

0 commit comments

Comments
 (0)