Merge branch 'wsl'

This commit is contained in:
Christoph J. Scherr 2023-07-11 17:38:44 +02:00
commit ee4ae36024
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
2 changed files with 11 additions and 9 deletions

View File

@ -156,18 +156,20 @@ command! -nargs=0 OR :call CocActionAsync('runCommand', 'editor.action.org
" Mappings for CoCList " Mappings for CoCList
" Show all diagnostics " Show all diagnostics
nnoremap <silent><nowait> <leader>CA :<C-u>CocList diagnostics<cr> nnoremap <silent><nowait> <leader>ca :<C-u>CocList diagnostics<cr>
" Manage extensions " Manage extensions
nnoremap <silent><nowait> <leader>CE :<C-u>CocList extensions<cr> nnoremap <silent><nowait> <leader>ce :<C-u>CocList extensions<cr>
" Show commands " Show commands
nnoremap <silent><nowait> <leader>CC :<C-u>CocList commands<cr> nnoremap <silent><nowait> <leader>cc :<C-u>CocList commands<cr>
" Find symbol of current document " Find symbol of current document
nnoremap <silent><nowait> <leader>CO :<C-u>CocList outline<cr> nnoremap <silent><nowait> <leader>co :<C-u>CocList outline<cr>
" Search workspace symbols " Search workspace symbols
nnoremap <silent><nowait> <leader>CS :<C-u>CocList -I symbols<cr> nnoremap <silent><nowait> <leader>cs :<C-u>CocList -I symbols<cr>
" Do default action for next item " Do default action for next item
nnoremap <silent><nowait> <leader>CJ :<C-u>CocNext<CR> nnoremap <silent><nowait> <leader>cj :<C-u>CocNext<CR>
" Do default action for previous item " Do default action for previous item
nnoremap <silent><nowait> <leader>CK :<C-u>CocPrev<CR> nnoremap <silent><nowait> <leader>ck :<C-u>CocPrev<CR>
" Resume latest coc list " Resume latest coc list
nnoremap <silent><nowait> <leader>CP :<C-u>CocListResume<CR> nnoremap <silent><nowait> <leader>cp :<C-u>CocListResume<CR>
" reload rust language server
nnoremap <silent><nowait> <leader>crr :CocCommand rust-analyzer.reload<CR>

View File

@ -21,7 +21,7 @@ local function my_on_attach(bufnr)
-- however, through magic, the default keys are loaded anyways ONLY IN WSL -- however, through magic, the default keys are loaded anyways ONLY IN WSL
-- I have made a separate branch (wsl) for any such things -- I have made a separate branch (wsl) for any such things
-- just use a proper Linux, if possible -- just use a proper Linux, if possible
api.config.mappings.default_on_attach(bufnr) --api.config.mappings.default_on_attach(bufnr)
-- custom mappings -- custom mappings
-- cd -- cd