configs/dot.config/helix
2024-06-23 12:51:06 +02:00
..
runtime/themes update helix config 2024-01-02 22:09:54 +01:00
snippets update helix config 2024-06-23 12:51:06 +02:00
unicode-input update helix config 2024-06-23 12:51:06 +02:00
config.toml update helix config for web development 2024-05-15 11:49:52 +02:00
external-snippets.toml update helix config 2024-06-23 12:51:06 +02:00
languages.toml update helix config 2024-06-22 22:19:08 +02:00
README.md update helix config 2024-06-23 12:51:06 +02:00

Helix Configuration

Language Server Setup

Language Servers to install to get the config to work as is:

General editor features

"Simple" Completions, like words, emojis, kanji, etc

cargo install --git https://github.com/estin/simple-completion-language-server.git
# after setting up the helix config, run:
simple-completion-language-server fetch-external-snippets
# and optionally validate the snippets with
simple-completion-language-server validate-snippets
simple-completion-language-server validate-unicode-input

This LS uses snippets and mappings for completions. My config uses the suggested friendly-snippets and vim-unicode-snippets.

Web development

Vuejs, Typescript, Javascript, HTML, CSS

# vscode-langservers-extracted includes LSs for html, css, json, markdown and eslint
# typescript runtime should be installed globally to make the typescript and vue language servers work
npm i -g typescript typescript-language-server vscode-langservers-extracted emmet-ls @vue/language-server

JSON, YAML, TOML

npm i -g vscode-json-language-server # part of vscode-langservers-extracted
npm i -g yaml-language-server
# TOML: see https://taplo.tamasfe.dev/cli/installation/binary.html for taplo binarys
cargo install taplo-cli --locked # or cargo install taplo-cli --locked --no-default-features --features lsp

Rust

To learn more about the Rust language, check out rust-lang.org. The language server for Rust I use is rust-analyzer. There was RLS before, but it got deprecated in favour of rust-analyzer. Check out installation info for the binary or install via Rustup:

rustup component add rust-analyzer

Zig

To learn more about the Zig language, check out ziglang.org. The language server for Zig is called ZLS. Make sure to always keep the version of Zig and ZLS in sync. The version at the time of writing was 0.13.0.

# or check out binary release on github.com/zigtools/zls
git clone https://github.com/zigtools/zls
cd zls
zig build -Doptimize=ReleaseSafe

V

V is another rather young programming language, that aims to be simple, fast and safe. Check out vlang.io for more. VLS is the language server for V.

# Since V 0.3.1 the language server can simply be installed via
v ls --install