nvim/after/ftplugin/scala.vim

17 lines
399 B
VimL
Raw Normal View History

noremap <Leader>f :Autoformat<CR>
2019-09-23 07:37:48 +00:00
imap //< <Plug>(codelines-close)<CR>
map <silent> <buffer> <leader>cl :call jobstart(['codelines', '.'])<cr>
2021-01-19 23:13:01 +00:00
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!