Open KaranAhlawat opened 6 months ago
html-mode was just the simplest to start with. you are welcome to create a PR or maybe suggest some specific changes.
I'll see if just swapping out html-mode
for prog-mode
is sufficient. Will open a PR if it is
@KaranAhlawat it will be a bit more than that, but check the behaviour with other packages. It might also be worth while to have a look how other templating modes work and where they derive from.
vue-ts-mode
derives from prog-mode
, while astro-ts-mode
derives from html-mode
. Couldn't find other examples of templating languages modes.
The derivation chain goes
heex-ts-mode
<-html-mode
<-sgml-mode
<-text-mode
<-nil
. Which means users may trigger (and conversely not trigger) behavior they have setup intext-mode
(and converselyprog-mode
).For a concrete example, the default completion-at-point keybinding is taken over by
ispell
in text-mode. This was unexpected sinceheex-ts-mode
, is primarily a programming buffer, even if you're just mostly writing templates.What are your thoughts on making it derive from
prog-mode
orweb-mode
rather thanhtml-mode
?