From 14779f654194f86b3cec6d89e3fef9e792d29026 Mon Sep 17 00:00:00 2001 From: Oxbian Date: Tue, 4 Feb 2025 19:34:35 -0500 Subject: feat: working + clean linter/fixer/completion/LSP --- conf/keymaps.vim | 43 ------------------------------------------- 1 file changed, 43 deletions(-) (limited to 'conf/keymaps.vim') 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 sa zg " show the list of alternatives for the word noremap s? z= - -""""""""""""""""""" -" LSP -""""""""""""""""""" -inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" - -" Make to accept selected completion item or notify coc.nvim to format -" u breaks current undo, please make your own choice -inoremap pumvisible() ? coc#_select_confirm() : - \"\u\\=coc#on_enter()\" -let g:coc_snippet_next = '' - -nmap gp (coc-diagnostic-prev) -nmap gn (coc-diagnostic-next) - -" GoTo code navigation -nmap gd (coc-definition) -nmap gy (coc-type-definition) -nmap gi (coc-implementation) -nmap gr (coc-references) - -" Use K to show documentation in preview window -nnoremap gh :call ShowDocumentation() - -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 gR (coc-rename) - -" Formatting selected code -xmap gf (coc-format-selected) -nmap gf (coc-format-selected) - -nmap qf (coc-fix-current) -- cgit v1.2.3