add jsonnet lsp config

This commit is contained in:
sfigato 2024-06-22 23:16:04 +02:00
parent a77f8c0e28
commit 69446e5a1e
Signed by: blallo
GPG Key ID: C530464EEDCF489A
2 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,7 @@ let g:ale_fixers = {
\ 'vala': ['uncrustify'],
\ 'dart': ['dartfmt'],
\ 'scss': ['prettier'],
\ 'jsonnet': ['jsonnetfmt'],
\}
let g:ale_rust_rls_config = {

View File

@ -34,6 +34,7 @@ let g:LanguageClient_serverCommands = {
\ 'java': ['/usr/bin/java-language-server'],
\ 'typescript': ['/usr/bin/typescript-language-server', '--stdio'],
\ 'typescriptreact': ['/usr/bin/typescript-language-server', '--stdio'],
\ 'jsonnet': ['/usr/bin/jsonnet-language-server'],
\ }
let g:LanguageClient_rootMarkers = {
@ -42,6 +43,7 @@ let g:LanguageClient_rootMarkers = {
\ 'typescriptreact': ['package.json'],
\ 'rust': ['Cargo.toml'],
\ 'python': ['pyproject.toml', 'setup.cfg'],
\ 'jsonnet': ['jsonnetfile.json', 'jsonnetfile.lock.json'],
\ }
let g:LanguageClient_hoverPreview = 'always'