From: Lukas Hägele Date: Sat, 3 Oct 2026 09:34:15 +0000 (+0200) Subject: associate ".h"-Files with "C" instead of "C++" X-Git-Url: https://git.lhaegele.de/?a=commitdiff_plain;h=161ffc0fd8be20cff22659ce3da429d3ea989ef0;p=dotfiles_nvim.git associate ".h"-Files with "C" instead of "C++" --- diff --git a/lua/config/settings.lua b/lua/config/settings.lua index 4df61e2..1f792ae 100644 --- a/lua/config/settings.lua +++ b/lua/config/settings.lua @@ -36,3 +36,6 @@ vim.opt.isfname:append("@-@") vim.opt.updatetime = 50 -- vim.opt.colorcolumn = "80" + +-- associate 'h'-files with C instead of C++ +vim.g.c_syntax_for_h = 1