Skip to content

Commit

Permalink
Add Svelte LSP & config
Browse files Browse the repository at this point in the history
  • Loading branch information
OJFord committed Oct 22, 2021
1 parent 6b2a5bc commit d3268ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vim/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ let g:LanguageClient_rootMarkers = {
\ 'go': ['go.mod', 'go.sum', 'main.go'],
\ 'python': ['pyproject.toml', 'setup.cfg', 'setup.py', 'tox.ini'],
\ 'rust': ['Cargo.toml'],
\ 'svelte': ['svelte.config.js', 'package.json', 'yarn.lock'],
\ 'terraform': ['.terraform'],
\ 'vim': ['autoload', 'ftdetect', 'ftplugin'],
\ 'vue': ['package.json'],
Expand All @@ -89,6 +90,7 @@ let g:LanguageClient_serverCommands = {
\ 'go': ['gopls'],
\ 'python': ['pyls', '--log-file=/tmp/python-languageserver.log', '--verbose'],
\ 'rust': ['rustup', 'run', 'stable', 'rls'],
\ 'svelte': ['svelteserver', '--stdio'],
\ 'terraform': ['terraform-ls', 'serve'],
\ 'vim': ['vim-language-server'],
\ 'vue': ['vls', '--stdio'],
Expand Down
1 change: 1 addition & 0 deletions vim/aconfmgr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ AddPackage python-language-server
AddPackage --foreign python-language-server-black
AddPackage --foreign pyls-mypy
rustup component add rls
AddPackage --foreign nodejs-svelte-language-server
AddPackage --foreign terraform-ls
3 changes: 3 additions & 0 deletions vim/ftplugin/svelte.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set tabstop=2
set shiftwidth=2
let g:vim_svelte_plugin_use_sass=1

0 comments on commit d3268ce

Please sign in to comment.