From 972289799c54f327aaccf54d95670bbb54db4235 Mon Sep 17 00:00:00 2001 From: Roman Volovoy Date: Mon, 28 Sep 2026 16:13:36 +0200 Subject: [PATCH] fix codam header --- nvim/.config/nvim/after/ftplugin/c.lua | 1 + nvim/.config/nvim/lua/romanzy/options.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/nvim/.config/nvim/after/ftplugin/c.lua b/nvim/.config/nvim/after/ftplugin/c.lua index 33ead83..dd0864d 100644 --- a/nvim/.config/nvim/after/ftplugin/c.lua +++ b/nvim/.config/nvim/after/ftplugin/c.lua @@ -2,3 +2,4 @@ local o = vim.opt_local o.textwidth = 80 o.expandtab = false +o.commentstring = "/*%s*/" diff --git a/nvim/.config/nvim/lua/romanzy/options.lua b/nvim/.config/nvim/lua/romanzy/options.lua index cb0ef65..71ca01f 100644 --- a/nvim/.config/nvim/lua/romanzy/options.lua +++ b/nvim/.config/nvim/lua/romanzy/options.lua @@ -33,6 +33,7 @@ o.completeopt = { "menuone", "noinsert", "fuzzy", "nosort" } -- Enables fuzzy co o.pumheight = 8 -- Limits the completion popup menu size. o.updatetime = 50 -- Reduces idle delay for swap and CursorHold events. o.shell = "bash" -- Runs shell commands through bash. +g.c_syntax_for_h = true -- Unfuck header formatting -- Only show the invisible characters inside the code editing buffers vim.cmd([[autocmd BufWinEnter * if &buftype != '' | setlocal nolist | endif]])