Large cleanup and switch to NVIM LSP
This commit is contained in:
parent
37fb739795
commit
2eed622601
14 changed files with 221 additions and 83 deletions
|
@ -1,27 +1,5 @@
|
|||
noremap <Leader>f :Autoformat<CR>
|
||||
|
||||
imap //< <Plug>(codelines-close)<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
|
||||
|
||||
" Toggle panel with Tree Views
|
||||
nnoremap <silent> <space>t :<C-u>CocCommand metals.tvp<CR>
|
||||
" Toggle Tree View 'metalsPackages'
|
||||
nnoremap <silent> <space>tp :<C-u>CocCommand metals.tvp metalsPackages<CR>
|
||||
" Toggle Tree View 'metalsCompile'
|
||||
nnoremap <silent> <space>tc :<C-u>CocCommand metals.tvp metalsCompile<CR>
|
||||
" Toggle Tree View 'metalsBuild'
|
||||
nnoremap <silent> <space>tb :<C-u>CocCommand metals.tvp metalsBuild<CR>
|
||||
" Reveal current current class (trait or object) in Tree View 'metalsPackages'
|
||||
nnoremap <silent> <space>tf :<C-u>CocCommand metals.revealInTreeView metalsPackages<CR>
|
||||
|
||||
set tw=120
|
||||
set foldlevel=99
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue