mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
6cfca21bac
Problem: Injecting languages for file redirects (e.g., in bash) is not possible. Solution: Add `@injection.filename` capture that is piped through `vim.filetype.match({ filename = node_text })`; the resulting filetype (if not `nil`) is then resolved as a language (either directly or through the list maintained via `vim.treesitter.language.register()`). Note: `@injection.filename` is a non-standard capture introduced by Helix; having two editors implement it makes it likely to be upstreamed. |
||
---|---|---|
.. | ||
_fold.lua | ||
_meta.lua | ||
_query_linter.lua | ||
_range.lua | ||
dev.lua | ||
health.lua | ||
highlighter.lua | ||
language.lua | ||
languagetree.lua | ||
query.lua |