diff options
author | Oxbian <oxbian@mailbox.org> | 2025-02-04 19:34:35 -0500 |
---|---|---|
committer | Oxbian <oxbian@mailbox.org> | 2025-02-04 19:34:35 -0500 |
commit | 14779f654194f86b3cec6d89e3fef9e792d29026 (patch) | |
tree | 4967fb59a7d73883156fc0673bf2c17ce1d6ef7c /conf/keymaps.vim | |
parent | e65597837ec3057989f6bc67d90e5c10d4f3d14e (diff) | |
download | vimrc-14779f654194f86b3cec6d89e3fef9e792d29026.tar.gz vimrc-14779f654194f86b3cec6d89e3fef9e792d29026.zip |
feat: working + clean linter/fixer/completion/LSP
Diffstat (limited to 'conf/keymaps.vim')
-rw-r--r-- | conf/keymaps.vim | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/conf/keymaps.vim b/conf/keymaps.vim index 066dd21..351520d 100644 --- a/conf/keymaps.vim +++ b/conf/keymaps.vim @@ -145,46 +145,3 @@ noremap <leader>sa zg " show the list of alternatives for the word noremap <leader>s? z= - -""""""""""""""""""" -" LSP -""""""""""""""""""" -inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>" - -" Make <CR> to accept selected completion item or notify coc.nvim to format -" <C-g>u breaks current undo, please make your own choice -inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : - \"\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>" -let g:coc_snippet_next = '<tab>' - -nmap <silent> gp <Plug>(coc-diagnostic-prev) -nmap <silent> gn <Plug>(coc-diagnostic-next) - -" GoTo code navigation -nmap <silent> gd <Plug>(coc-definition) -nmap <silent> gy <Plug>(coc-type-definition) -nmap <silent> gi <Plug>(coc-implementation) -nmap <silent> gr <Plug>(coc-references) - -" Use K to show documentation in preview window -nnoremap <silent> gh :call ShowDocumentation()<CR> - -function! ShowDocumentation() - if CocAction('hasProvider', 'hover') - call CocActionAsync('doHover') - else - call feedkeys('K', 'in') - endif -endfunction - -" Highlight the symbol and its references when holding the cursor -autocmd CursorHold * silent call CocActionAsync('highlight') - -" Symbol renaming -nmap <leader>gR <Plug>(coc-rename) - -" Formatting selected code -xmap <leader>gf <Plug>(coc-format-selected) -nmap <leader>gf <Plug>(coc-format-selected) - -nmap <leader>qf <Plug>(coc-fix-current) |