mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
chore: update usage vim.split to new signature
Old usage was still working because of backward compatibility of nvim code: ```lua if type(kwargs) == 'boolean' then -- Support old signature for backward compatibility plain = kwargs else ``` `:h vim-split()` https://neovim.io/doc/user/lua.html#vim.split()
This commit is contained in:
parent
48a3da7103
commit
f2b1d727e6
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue