Some CoC settings, mostly for scala
This commit is contained in:
parent
c9584b196c
commit
1716044065
|
@ -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!
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"languageserver": {
|
|
||||||
"dotty": {
|
|
||||||
"command": "run-dotty-lsp",
|
|
||||||
"rootPatterns": ["build.sbt"],
|
|
||||||
"filetypes": ["scala", "sbt"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue