Skip to content

Commit

Permalink
Use vim with Scala
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuhei Kagawa committed Jul 24, 2019
1 parent 4142a82 commit 0e8d3c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore_global
Expand Up @@ -15,3 +15,5 @@ ehthumbs.db
Thumbs.db
node_modules
*~
.metals
.bloop
7 changes: 6 additions & 1 deletion .vim/rc/plugins.rc.vim
Expand Up @@ -327,11 +327,16 @@ if dein#tap('LanguageClient-neovim')
" rustup install nightly-2018-12-06
" rustup default nightly-2018-12-06
" rustup component add rls rust-analysis rust-src rustfmt
" JS/TS:
"
" JavaScript/TypeScript:
" npm i -g javascript-typescript-langserver
"
" Scala:
" https://scalameta.org/metals/docs/editors/vim.html#generating-metals-binary
let g:LanguageClient_serverCommands = {
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'nightly-2018-12-06-x86_64-apple-darwin', 'rls'],
\ 'typescript': ['javascript-typescript-stdio'],
\ 'scala': ['~/bin/metals-vim'],
\}

nnoremap <leader>t :call LanguageClient_contextMenu()<CR>
Expand Down

0 comments on commit 0e8d3c5

Please sign in to comment.