Skip to content

fix(scope): respect language.register() in TSScope:parser#2842

Open
arseneyr wants to merge 1 commit into
folke:mainfrom
arseneyr:scope-fix
Open

fix(scope): respect language.register() in TSScope:parser#2842
arseneyr wants to merge 1 commit into
folke:mainfrom
arseneyr:scope-fix

Conversation

@arseneyr

Copy link
Copy Markdown

Description

TSScope:parser passes vim.bo[opts.buf].filetype directly as the lang argument to vim.treesitter.get_parser, bypassing any custom vim.treesitter.language.register() mappings. This change passes nil so get_parser does the filetype -> language resolution itself.

@github-actions github-actions Bot added scope size/s Small PR (<10 lines changed) labels Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope size/s Small PR (<10 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant