GithubHelp home page GithubHelp logo

rajasegar / helix-abbrevs-ls Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 79 KB

Language Server for Helix abbreviations

License: MIT License

JavaScript 100.00%
abbreviations helix helix-editor lsp-server

helix-abbrevs-ls's Introduction

helix-abbrevs-ls

Language Server for using abbreviations in Helix

This package allows you to add abbreviations to the Helix 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

Install

You need Node.js 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:

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

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

helix-abbrevs-ls's People

Contributors

rajasegar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.