1.0.1 • Published 2 years ago
helix-snippets-ls v1.0.1
helix snippets ls
Language server for snippets in Helix
This package allows you to add snippets to the Helix editor using a LSP server for autocompleting snippets.
You can define your snippets in a TOML file and use it in Helix.
Install
npm i -g helix-snippets-ls
Usage
Create an snippets.toml
file inside your Helix config dir ~/.config/helix/snippets.toml
Add snippets inside it like:
li = "<li>$0</li>"
img = "<img src=\"$1\" alt=\"$2\" />"
inbx = "<AppInbox abc=\"$1\" xyz=\"$2\">$0</AppInbox>"
Config
Config your languages.toml
to use this Language server
[[language]]
name = "handlebars"
roots = ["package.json"]
file-types = ["hbs"]
scope = "source.hbs"
language-server = { command = "helix-snippets-ls" }
Known limitations
- The language server can be only used for one language at a time