From f48fc258ca7e8c2ffd9b7d6b2e1e082ade01c7dd Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Sun, 26 Nov 2023 05:52:46 -0700 Subject: [PATCH] Interpret header files as C, not C++. --- jrpotter/lang/c.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jrpotter/lang/c.nix b/jrpotter/lang/c.nix index 4b94ca4..fe77088 100644 --- a/jrpotter/lang/c.nix +++ b/jrpotter/lang/c.nix @@ -20,6 +20,12 @@ in nvim-lspconfig = '' require('init.c').nvim_lspconfig() + + vim.filetype.add({ + pattern = { + ['.*%.h'] = 'c', + }, + }) ''; };