-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
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
[BUG] "no parser for 'telekasten' language, see :help treesitter-parsers" #279
Comments
have you tried disabling the filetype so it stays |
@lambtho12 That does solve the problem. Are there any disadvantages to having the filetype Markdown instead of Telekasten? I do however feel like Telekasten should be compatible with Treesitter out of the box since its build into Neovim. Is there any other solution? |
The main issue is with the renaming of the files and subsequent update of the links. When you rename a file, Telekasten first saves all buffers with a telekasten type and then update the links. If I recall correctly, when the filetype is not set to Telekasten, the links are modified in open buffer but without saving them first. So any non-saved changes in a buffer that contains a link that must be updated may be lost. This is the only "big" issue I can think of. The main idea behind a specific filetype is to allow specific interactions with other plugins. With that you can very easily create snippets that would work for your notes (telekasten filetype) and do not clutter/clash with your regular markdown experience. If you look a bit through the issues, setting the syntax to telekasten seems to lead to more and more issues over time. As the benefits it provides are very limited (I beleive), I am seriously thinking about removing this all together to simplify maintenance. |
I believe this can be solved by doing the folloing: require("vim.treesitter.language").register("markdown", "telekasten") This causes the markdown treesitter parser to be used on the telekasten filetype. |
This appears to work for me. |
Please confirm
Describe the bug
Hi! I'm trying out Telekasten but I immediately ran into an issue. Telekasten seems to be clashing with tsnode-marker.nvim. It seems to be because tsnode-marker.nvim calls
vim.treesitter.get_parser()
, which causes Treesitter to throw the error "no parser for 'telekasten' language, see :help treesitter-parsers".To Reproduce
Steps to reproduce the behavior:
Use the following
init.lua
:Click to expand
nvim -u init.lua
:Telekasten new_note
Test note
:=vim.treesitter.get_parser(0)
Expected behavior
I'm not sure what the expected behaviour is, because I'm not familiar with
get_parser
. Perhaps it should return the one for Markdown? Treesitter should at least not throw an error.Operating system (please complete the following information):
The text was updated successfully, but these errors were encountered: