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:
Stephan Seitz 2022-12-25 13:23:36 +01:00
parent 48a3da7103
commit f2b1d727e6

View file

@ -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