See the below threads https://github.com/neovim/neovim/pull/16600 https://www.reddit.com/r/neovim/comments/rvwsl3/introducing_filetypelua_and_a_call_for_help/ https://neovim.discourse.group/t/introducing-filetype-lua-and-a-call-for-help/1806