Open GordianDziwis opened 1 year ago
Looks nice, you could do similar thing but without &filetype annotation with a selection boundary:
let g:vim_ai_chat = {
\ "options": {
\ "selection_boundary": "```",
\ },
\}
This is nicer, but it is not possible to add &filetype
for syntax highlighting. Maybe having a pre_selection_boundary
and a post_selection_boundary
could be the solution?
In this case I can imagine making it a little bit smarter - if the boundary is ```, it is considered a standard markdown boundary and the filetype is added automatically
I have wrapped AIChatRun calls with those functions for getting a nicer prompt:
And by the way with treesitter there is no need to define embedded syntaxes, this is already included.