estin / simple-completion-language-server

Language server to enable word completion and snippets for Helix editor
MIT License
193 stars 9 forks source link

external snippets #91

Open dsisnero opened 1 week ago

dsisnero commented 1 week ago

I am trying to get external snippets working. When I copy the and paste the external-snippets.toml the snippets validate. Not getting any snippets when it is set in languages.toml.

Also, with the external-snippets.toml - it always looks for [sources.path] . how can you set it so it changes snippets for the language file that is open? .py - scope python - .rb -> scope ruby

GameDungeon commented 1 week ago

You did remember to run fetch external snippets, correct?

I'm pretty sure the scope flag exists purely to change the snippets based on the file open. Eg. Only snippets in scope python are used in .py files.

estin commented 1 week ago

@dsisnero Hi. Did you run simple-completion-language-server fetch-external-snippet ?