Skip to content
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

Refactor inside Markdown codeblocks (injections) #28

Open
carrascomj opened this issue Dec 29, 2021 · 0 comments
Open

Refactor inside Markdown codeblocks (injections) #28

carrascomj opened this issue Dec 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@carrascomj
Copy link

Is your feature request related to a problem? Please describe.
Markdown has now a treesitter implementation. This came with language-specific syntax highlighting for the different code blocks in the markdown file. Now, it is even working with textobjects inside code blocks (I believe since nvim-treesitter/nvim-treesitter-textobjects@c4be3a4 but maybe there was further tweaking).

Describe the solution you'd like
I would like to have the refactor functionality for code blocks in markdown files too. It would be nice to have at least the highlight_definitions but I am also finding the rename quite useful for markdown files. I guess they should be isolated to the current code block.

Describe alternatives you've considered
Alternatively, having global refactor actions (for all code blocks in the same language) would be great too, although it sounds very ambitious.

Additional context
My entire treesitter-related config is at https://github.com/carrascomj/dotnvim/blob/master/lua/lv-treesitter/init.lua

@carrascomj carrascomj added the enhancement New feature or request label Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant