Some CoC settings, mostly for scala

This commit is contained in:
Alexander Gehrke 2021-01-20 00:13:01 +01:00
parent c9584b196c
commit 1716044065
3 changed files with 10 additions and 10 deletions

View file

@ -3,4 +3,14 @@ noremap <Leader>f :Autoformat<CR>
imap //< <Plug>(codelines-close)<CR> imap //< <Plug>(codelines-close)<CR>
map <silent> <buffer> <leader>cl :call jobstart(['codelines', '.'])<cr> map <silent> <buffer> <leader>cl :call jobstart(['codelines', '.'])<cr>
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction
au BufWritePost *.scala Neomake! au BufWritePost *.scala Neomake!

View file

@ -15,4 +15,3 @@ vmap <silent> <M-a> <Plug>(coc-codeaction-selected)
omap <silent> af <Plug>(coc-funcobj-a) omap <silent> af <Plug>(coc-funcobj-a)
omap <silent> if <Plug>(coc-funcobj-i) omap <silent> if <Plug>(coc-funcobj-i)

View file

@ -1,9 +0,0 @@
{
"languageserver": {
"dotty": {
"command": "run-dotty-lsp",
"rootPatterns": ["build.sbt"],
"filetypes": ["scala", "sbt"]
}
}
}