aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/parsers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index 04a4cea66..f4e13974b 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -1377,7 +1377,7 @@ function M.ft_to_lang(ft)
if result then
return result
else
- ft = vim.split(ft, ".", true)[1]
+ ft = vim.split(ft, ".", { plain = true })[1]
return filetype_to_parsername[ft] or ft
end
end