From f2b1d727e6ad46238baa84c4d1f968a297e415ab Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sun, 25 Dec 2022 13:23:36 +0100 Subject: 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() --- lua/nvim-treesitter/parsers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') 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 -- cgit v1.2.3-70-g09d2