update helix config

This commit is contained in:
Norman Köhring 2024-06-23 12:51:06 +02:00
parent 6c7b90ab0c
commit c819009a0c
5 changed files with 3344 additions and 2 deletions

View file

@ -10,8 +10,16 @@ Language Servers to install to get the config to work as is:
```sh
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](https://github.com/rafamadriz/friendly-snippets/) and [vim-unicode-snippets](https://github.com/danielwe/vim-unicode-snippets/blob/master/snippets/_.snippets).
### Web development
Vuejs, Typescript, Javascript, HTML, CSS

View file

@ -0,0 +1,64 @@
[[sources]]
name = "friendly-snippets"
git = "https://github.com/rafamadriz/friendly-snippets.git"
[[sources.paths]]
scope = ["shell"]
path = "snippets/shell/shell.json"
[[sources.paths]]
scope = ["rust"]
path = "snippets/rust/rust.json"
[[sources.paths]]
scope = ["ruby"]
path = "snippets/ruby/ruby.json"
[[sources.paths]]
scope = ["ruby"]
path = "snippets/frameworks/rails.json"
[[sources.paths]]
scope = ["python"]
path = "snippets/python/python.json"
[[sources.paths]]
scope = ["php"]
path = "snippets/php/php.json"
[[sources.paths]]
scope = ["latex"]
path = "snippets/latex/latex-snippets.json"
[[sources.paths]]
scope = ["javascript"]
path = "snippets/javascript/javascript.json"
[[sources.paths]]
scope = ["javascript"]
path = "snippets/javascript/jsdoc.json"
[[sources.paths]]
scope = ["typescript"]
path = "snippets/javascript/typescript.json"
[[sources.paths]]
scope = ["typescript"]
path = "snippets/javascript/tsdoc.json"
[[sources.paths]]
scope = ["docker"]
path = "snippets/docker/docker-compose.json"
[[sources.paths]]
scope = ["docker"]
path = "snippets/docker/docker_file.json"
[[sources.paths]]
scope = ["vue"]
path = "snippets/frameworks/vue/vue.json"
[[sources.paths]]
scope = ["vue"]
path = "snippets/frameworks/vue/html.json"
[[sources.paths]]
scope = ["vue"]
path = "snippets/frameworks/vue/script.json"
[[sources.paths]]
scope = ["vue"]
path = "snippets/frameworks/vue/style.json"

View file

@ -1,2 +0,0 @@
#!/bin/sh
npm i -g typescript typescript-language-server vscode-langservers-extracted emmet-ls @vue/language-server yaml-language-server

View file

File diff suppressed because it is too large Load diff