From 959dbfc2fb17233bfcaef8329142f1a499e09fd7 Mon Sep 17 00:00:00 2001 From: woojiq Date: Sun, 21 Jan 2024 10:50:07 +0200 Subject: [PATCH] add ".h" extension to the C file-types Previously, if you changed the tab-width for C but did not add ".h" to C file types, headers used Cpp's indentation (default is 2), which is undesirable. --- languages.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 7983e75ace0ec..287c0a13d373c 100644 --- a/languages.toml +++ b/languages.toml @@ -380,7 +380,7 @@ source = { git = "https://github.com/Joakker/tree-sitter-json5", rev = "c23f7a9b name = "c" scope = "source.c" injection-regex = "c" -file-types = ["c"] # TODO: ["h"] +file-types = ["c", "h"] comment-token = "//" language-servers = [ "clangd" ] indent = { tab-width = 2, unit = " " }