Revert "nvim: init.vim: Add Scala LSP support using metals"

This reverts commit 38fd4dbec1.
This commit is contained in:
Sanchayan Maity 2019-08-27 19:37:26 +05:30
parent 42258702f4
commit 547a106db3

View file

@ -59,8 +59,6 @@ Plug 'zchee/deoplete-jedi'
" Autocomplete for Rust " Autocomplete for Rust
Plug 'sebastianmarkow/deoplete-rust' Plug 'sebastianmarkow/deoplete-rust'
Plug 'rust-lang/rust.vim' Plug 'rust-lang/rust.vim'
" For Scala
Plug 'derekwyatt/vim-scala'
" Miscellaneous " Miscellaneous
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
Plug 'editorconfig/editorconfig-vim' Plug 'editorconfig/editorconfig-vim'
@ -191,11 +189,8 @@ let g:echodoc#type = 'signature'
let g:LanguageClient_autoStart = 0 let g:LanguageClient_autoStart = 0
let g:LanguageClient_loggingFile = expand('$HOME/LC.log') let g:LanguageClient_loggingFile = expand('$HOME/LC.log')
let g:LanguageClient_rootMarkers = ['stack.yaml', 'build.sbt'] let g:LanguageClient_rootMarkers = ['stack.yaml']
let g:LanguageClient_serverCommands = { let g:LanguageClient_serverCommands = { 'haskell': ['$HOME/.local/bin/hie-wrapper'] }
\ 'haskell': ['$HOME/.local/bin/hie-wrapper'],
\ 'scala': ['metals-vim'],
\ }
nnoremap <leader>ld :call LanguageClient#textDocument_definition()<CR> nnoremap <leader>ld :call LanguageClient#textDocument_definition()<CR>
nnoremap <leader>lr :call LanguageClient#textDocument_rename()<CR> nnoremap <leader>lr :call LanguageClient#textDocument_rename()<CR>
@ -306,6 +301,3 @@ let g:loaded_gentags#ctags = 1
" Let vim-gitgutter do its thing on large files " Let vim-gitgutter do its thing on large files
let g:gitgutter_max_signs=10000 let g:gitgutter_max_signs=10000
" For vim-scala
au BufRead,BufNewFile *.sbt set filetype=scala