Skip to content

fix: correctly work when filetype does not match parser name#35

Merged
Eandrju merged 1 commit intoEandrju:mainfrom
artem-nefedov:fix-ft-parser-name-mismatch
Jan 31, 2025
Merged

fix: correctly work when filetype does not match parser name#35
Eandrju merged 1 commit intoEandrju:mainfrom
artem-nefedov:fix-ft-parser-name-mismatch

Conversation

@artem-nefedov
Copy link
Copy Markdown

@artem-nefedov artem-nefedov commented Jan 25, 2025

fixes #34

vim.treesitter.language.get_lang() returns nil for unknown filetypes, therefore or filetype will ensure error message is the same as before.

@Eandrju
Copy link
Copy Markdown
Owner

Eandrju commented Jan 31, 2025

Thanks!

@Eandrju Eandrju merged commit 41b6d66 into Eandrju:main Jan 31, 2025
2 of 4 checks passed
@Eandrju Eandrju mentioned this pull request Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Not working when filetype doesn't match parser name

2 participants