Compare commits

..

No commits in common. '72f5be9e008951a441dadc096605fe187ed0e52d' and '6c7b90ab0c5049a74a5123d2ca709ff64c8678d8' have entirely different histories.

@ -10,16 +10,8 @@ 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

@ -19,20 +19,15 @@ render = true
character = "▏" # Some characters that work well: "▏", "┆", "┊", "⸽"
skip-levels = 1
[editor.whitespace.render]
space = "all"
tab = "all"
nbsp = "all"
nnbsp = "all"
newline = "all"
[editor.whitespace]
render = "all"
[editor.whitespace.characters]
space = "·"
nbsp = "⍽"
nnbsp = "␣"
tab = "⇥" # "→"
newline = "⮒" # "¬" #"⏎"
tabpad = "·" # Tabs will look like "→···" (depending on tab width)
tab = "→"
newline = "¬" #"⏎"
tabpad = "·" # Tabs will look like "→···" (depending on tab width)
[editor.lsp]
enable = true

@ -1,64 +0,0 @@
[[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"

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

@ -20,7 +20,6 @@ run = "onType"
validate = "on"
experimental = {}
problems = { shortenToSingleLine = false }
provideFormatter = true
[language-server.eslint.config.codeAction]
disableRuleComment = { enable = true, location = "separateLine" }
@ -69,12 +68,12 @@ feature_paths = true # enable path completion
[[language]]
name = "typescript"
auto-format = true
language-servers = [ "typescript-language-server", "eslint", "emmet-ls", "scls", "gpt" ]
language-servers = [ "scls", "typescript-language-server", "eslint", "emmet-ls", "gpt" ]
formatter = { command = "prettier", args = [ "--parser", "typescript" ] }
[[language]]
name = "javascript"
language-servers = [ "typescript-language-server", "eslint", "emmet-ls", "scls", "gpt" ]
language-servers = [ "scls", "typescript-language-server", "eslint", "emmet-ls", "gpt" ]
formatter = { command = "prettier", args = [ "--parser", "typescript" ] }
auto-format = true
@ -85,7 +84,7 @@ auto-format = true
[[language]]
name = "html"
language-servers = [ "vscode-html-language-server", "emmet-ls", "scls", "gpt" ]
language-servers = [ "scls", "vscode-html-language-server", "emmet-ls", "gpt" ]
formatter = { command = 'prettier', args = ["--parser", "html"] }
auto-format = true
[language.auto-pairs]
@ -99,7 +98,7 @@ auto-format = true
[[language]]
name = "css"
language-servers = [ "vscode-css-language-server", "scls", "gpt" ]
language-servers = [ "scls", "vscode-css-language-server", "emmet-ls", "gpt" ]
formatter = { command = 'prettier', args = ["--parser", "css"] }
auto-format = true

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save