How define code block text object for markdown #2241
-
Contributing guidelines
Module(s)mini.ai QuestionI have currently this --> custom_textobjects = {
c = ai.gen_spec.pair('```', '```'),
}But this also selects the ``` lua I only want to select between ```+<code-name> and ``` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Treesitter approachCaution Make sure the Tip
1. Define captures for
|
Beta Was this translation helpful? Give feedback.
Treesitter approach
Caution
Make sure the
markdownparser is installed (:TSInstall markdown) and treesitter is working correctly.Tip
:InspectTreeto view the parsed syntax tree for the file.:EditQueryto test the captures shown below.1. Define captures for
mini.ai2. Extend
mini.aifor themarkdownfiletypeNote there is no "inline" fence…