mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
fix(lang): only use first part in multi-lang
This commit is contained in:
parent
1d8dd9665c
commit
14e9df138b
1 changed files with 1 additions and 0 deletions
|
|
@ -716,6 +716,7 @@ local M = {
|
|||
}
|
||||
|
||||
function M.ft_to_lang(ft)
|
||||
ft = vim.split(ft, '.', true)[1]
|
||||
return ft_to_parsername[ft] or ft
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue