key |
description |
alt + w |
toggle soft-wrap |
alt + / |
toggle comments |
ctrl + y |
yank to global clipboard |
] (2x) |
next buffer |
[ (2x) |
previous buffer |
{ |
rotate selection backwards |
} |
rotate selection forwards |
shift + left |
select mode |
shift + right |
select mode |
key |
description |
d |
close buffer |
D |
force close buffer |
q |
quit helix |
Q |
force quit helix |
s |
write changes to disk |
S |
force write changes to disk |
v , o |
open file in vertical split |
v , n |
open scratch buffer in vertical split |
v , q |
close vertical split buffer |
H |
jump to left split |
L |
jump to right split |
space |
add newline below |
up |
add newline above |
key |
description |
j |
go to next change |
k |
go to previous change |
key |
description |
, |
keep primary selection |
/ |
toggle comments |
p |
paste contents from the clipboard after the cursor |
P |
paste contents from the clipboard before the cursor |
r |
reload buffer |
R |
reload all buffers |
c , r |
reload config |
f |
format |
key |
description |
j , k |
exit insert mode |
Get a list of languages with an installed LSP.
name |
lang |
type |
package manager |
@astrojs/language-server |
astro |
LSP |
npm |
prettier-plugin-astro |
astro |
formatter |
npm |
bash-language-server |
bash |
LSP |
npm |
dot-language-server |
dot |
LSP |
npm |
svelte-language-server |
svelte |
LSP |
npm |
typescript-svelte-plugin |
svelte |
LSP |
npm |
typescript |
typescript |
LSP |
npm |
typescript-svelte-plugin |
typescript |
LSP |
npm |
vscode-langservers-extracted |
css |
LSP |
npm |
emmet-ls |
html |
LSP, snippet |
npm |
vscode-html-languageserver-bin |
html |
LSP |
npm |
prettier |
css, yaml, html |
formatter |
npm |
@tailwindcss/language-server |
tailwindcss |
LSP |
npm, nix |
prettier-plugin-tailwindcss |
tailwindcss |
formatter |
npm |
deno |
markdown, html, js, json, yaml, css, astro, svelte |
lsp, formatter, snippet |
deno, nix |
marksman |
markdown |
LSP |
brew, cargo |
lua-language-server |
lua |
LSP |
brew |
python-lsp-server |
python |
LSP |
brew |
black |
python |
formatter |
brew, pip |
yaml-language-server |
yaml |
LSP |
brew |
ansible-lint |
yaml |
LSP |
brew |
ansible/ansible-language-server |
ansible |
LSP |
npm |
taplo |
toml |
LSP |
cargo |
sqls |
sql |
LSP |
nix, pip |
sql-language-server |
sql |
LSP |
NPM |
sql-formatter |
sql |
formatter |
NPM |
nixpkgs-fmt |
nix |
fomatter |
nix |
Deno provides a LSP via the deno lsp
command. It supports JavaScript and TypeScript.
npm i -g @astrojs/language-server bash-language-server dot-language-server svelte-language-server typescript-language-server typescript vscode-langservers-extracted @ansible/ansible-language-server typescript-svelte-plugin sql-formatter emmet-ls
Add to each project's [js|ts]config.json
{
"compilerOptions": {
...
"plugins": [{
"name": "typescript-svelte-plugin"
}]
}
}
brew install marksman lua-language-server python-lsp-server yaml-language-server ansible-lint
Piping certain things proved challenging, luckily xargs
came to the rescue.
pipe:xargs -I {} echo {} | xargs -I {} grep {} attachment.csv | sed -E 's/(.*),(.*)/\1/g'
Instead of a getting all fancy with the terminal config use the literal character in the helix config. workaround
language.toml