Files
neovim/runtime/lua/vim
Christian Clason 041d98fe8d feat(treesitter)!: add default fallback to ft_to_lang lookups
Problem: Language names are only registered for filetype<->language
lookups when parsers are actually loaded; this means users cannot rely
on `vim.treesitter.language.get_lang()` or `get_filetypes()` to return
the correct value when language and filetype coincide and always need to
add explicit fallbacks.

Solution: Always return the language name as valid filetype in
`get_filetypes()`, and default to the filetype in `get_lang()`. Document
this behavior.
2024-09-29 15:27:16 +02:00
..
2024-09-29 09:54:12 +00:00
2024-03-06 10:45:22 +00:00
2024-05-27 20:48:46 +02:00
2024-01-16 09:33:10 +00:00
2024-09-01 13:01:24 -07:00
2024-08-29 06:11:32 +08:00
2024-03-16 19:26:10 +00:00
2024-04-30 07:04:42 +08:00