Skip to content

Integrating Visual Studio Code snippets into Helix Editor's LSP

License

Notifications You must be signed in to change notification settings

daxartio/snippets-ls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snippets-ls

The ls is an integration designed for Helix Editor, enabling the utilization of snippets from Visual Studio Code as auto-completion suggestions within the Helix Editor's Language Server Protocol (LSP) environment.

Installation

Install via go

go install github.com/daxartio/snippets-ls@latest

Don't forget to append ~/go/bin to your $PATH.

Usage

Create your own snippets follow VSCode syntax. Alternatively, you can make use of pre-existing sample for various programming languages.

Update your configuration file located at ~/.config/helix/languages.toml:

[[language]]
name = "go"
formatter = { command = "goimports"}
language-servers = ["gopls", "snippets-ls"]

[language-server.snippets-ls]
command = "snippets-ls"
args = ["-lang", "go"]

Subsequently, as you start working on your file, input a snippet prefix to observe the suggestion. If it does not work, take a look at ~/.cache/helix/helix.log for additional insights.

About

Integrating Visual Studio Code snippets into Helix Editor's LSP

Topics

Resources

License

Stars

Watchers

Forks

Languages