We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
filetypes.lua
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not all filetypes will have syntax files (I think), so while checking for missing filetypes in https://github.com/nvim-tree/nvim-web-devicons/blob/master/scripts/filetypes.sh#L10-L20 we should, on top of presence of syntax/<filetype>, check $VIMRUNTIME/lua/vim/filetype.lua as well.
syntax/<filetype>
$VIMRUNTIME/lua/vim/filetype.lua
The text was updated successfully, but these errors were encountered:
That looks like it feeds new API vim.filetype.match. I am wary, though, as this will vary based on vim version etc.
vim.filetype.match
I'm keen on generating this list at startup time, based on the filetypes that are actually available. Less maintenance.
Sorry, something went wrong.
What's the risk of defining filetype mapping for filetype that does not exist for user/their version of nvim?
I don't think there's any issue; it's only ever looked up as a map with the user provided filetype:
function M.get_icon_name_by_filetype(ft) return filetypes[ft] end
No branches or pull requests
Not all filetypes will have syntax files (I think), so while checking for missing filetypes in https://github.com/nvim-tree/nvim-web-devicons/blob/master/scripts/filetypes.sh#L10-L20 we should, on top of presence of
syntax/<filetype>
, check$VIMRUNTIME/lua/vim/filetype.lua
as well.The text was updated successfully, but these errors were encountered: