TerminalFi / LSP-copilot

GitHub Copilot support for Sublime Text LSP plugin provided through Copilot.vim.
623 stars 25 forks source link

refactor: use Jinja2 for completion popup / panel completion #171

Closed jfcherng closed 1 week ago

jfcherng commented 1 week ago

This makes logics more clear.

timfjord commented 1 week ago

@jfcherng I was going to extract the phantom stuff to the templates but wasn't sure about the template extension. You used the .md extension in the templates (e.g. completion@popup.md.jinja) but technically it is .html. What if I rename *.md.jinja to *.html.jinja

jfcherng commented 1 week ago

completion@popup.md.jinja) but technically it is .html

No, it's Markdown. And at the same time, Markdown is a superset of HTML.


What if I rename .md.jinja to .html.jinja

No functionality will be changed. But ST will use HTML (Jinja) for syntax highlighting when editing the template file and thus no markdown grammar will be highlighted.


Btw, Jinja2 syntax highlighting: https://packagecontrol.io/packages/Jinja2

timfjord commented 1 week ago

Ok, thanks for the clarification. Will stick to the .md then