An open API service indexing awesome lists of open source software.

https://github.com/rajasegar/helix-abbrevs-ls

Language Server for Helix abbreviations
https://github.com/rajasegar/helix-abbrevs-ls

abbreviations helix helix-editor lsp-server

Last synced: 6 months ago
JSON representation

Language Server for Helix abbreviations

Awesome Lists containing this project

README

          

# helix-abbrevs-ls
Language Server for using abbreviations in Helix

This package allows you to add abbreviations to the [Helix](https://helix-editor.com) editor
using a LSP server for autocompleting abbreviations.

You can define your abbreviations in a TOML file and use it in Helix.

![helix abbrevs demo](helix-abbrevs-ls.gif)

## Install
You need [Node.js](https://nodejs.org/en) installed on your machine.

```
npm i -g helix-abbrevs-ls
```

### Usage
Create an `abbrevs.toml` file inside your Helix config dir `~/.config/helix/abbrevs.toml`

Add abbreviations inside it like:

```toml
hx = "Helix"
lsp = "Language Server Protocol"
cfg = "config"
js = "JavaScript"
ts = "TypeScript"
```

### Config
Config your `languages.toml` to use this Language server

```toml
[[language]]
name = "handlebars"
roots = ["package.json"]
file-types = ["hbs"]
scope = "source.hbs"
language-server = { command = "helix-abbrevs-ls" }
```

### Known limitations
- The language server can be only used for one language at a time
- The abbreviations unlike `Vim` are not autocompleted as soon as you press Space or an Escape character