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
- Host: GitHub
- URL: https://github.com/rajasegar/helix-abbrevs-ls
- Owner: rajasegar
- License: mit
- Created: 2023-07-23T07:03:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-27T10:08:24.000Z (over 2 years ago)
- Last Synced: 2025-05-08T20:58:28.244Z (6 months ago)
- Topics: abbreviations, helix, helix-editor, lsp-server
- Language: JavaScript
- Homepage:
- Size: 77.1 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

## 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