From 3b0e90a46e12d1ce9405dc51082682dbb7472cbd Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sun, 1 Feb 2026 23:45:16 -0500 Subject: [PATCH] feat: fix bug --- lua/fugitive-ts/parser.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/fugitive-ts/parser.lua b/lua/fugitive-ts/parser.lua index 67c84ee..8cd119b 100644 --- a/lua/fugitive-ts/parser.lua +++ b/lua/fugitive-ts/parser.lua @@ -22,7 +22,14 @@ end ---@return string? local function get_lang_from_filename(filename, custom_langs, disabled_langs, debug) if custom_langs and custom_langs[filename] then - return custom_langs[filename] + local lang = custom_langs[filename] + if disabled_langs and vim.tbl_contains(disabled_langs, lang) then + if debug then + dbg('lang disabled: %s', lang) + end + return nil + end + return lang end local ft = vim.filetype.match({ filename = filename })