mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 01:02:09 +00:00
fix: type fixes
Type fixes caught by emmylua
This commit is contained in:

committed by
Lewis Russell

parent
4c333fdbb7
commit
3b6084ddf4
@@ -41,7 +41,7 @@ function M.get_lang(filetype)
|
||||
return ft_to_lang[filetype]
|
||||
end
|
||||
-- for subfiletypes like html.glimmer use only "main" filetype
|
||||
filetype = vim.split(filetype, '.', { plain = true })[1]
|
||||
filetype = assert(vim.split(filetype, '.', { plain = true })[1])
|
||||
return ft_to_lang[filetype] or filetype
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user