failed attempt to fix broken vim

This commit is contained in:
mehbark 2025-12-08 19:53:18 -05:00
parent c1bfc7e69e
commit 02476306b0

View file

@ -15,8 +15,8 @@ let g:ConqueGdb_GdbExe = 'arm-none-eabi-gdb'
set completeopt=noinsert,menuone,noselect set completeopt=noinsert,menuone,noselect
" tab to select " tab to select
" and don't hijack my enter key " and don't hijack my enter key
inoremap <expr><Tab> (pumvisible()?(empty(v:completed_item)?"\<C-n>":"\<C-y>"):"\<Tab>") inoremap <expr><Tab> (coc#pum#visible()?(empty(v:completed_item)?"\<C-n>":"\<C-y>"):"\<Tab>")
inoremap <expr><CR> (pumvisible()?(empty(v:completed_item)?"\<CR>\<CR>":"\<C-y>"):"\<CR>") inoremap <expr><CR> (coc#pum#visible()?(empty(v:completed_item)?"\<CR>\<CR>":"\<C-y>"):"\<CR>")
"===== Compilation Error Navigation =====" "===== Compilation Error Navigation ====="
nmap <silent> <C-k> <Plug>(coc-diagnostic-next-error) nmap <silent> <C-k> <Plug>(coc-diagnostic-next-error)
@ -219,20 +219,11 @@ set shortmess+=c
" diagnostics appear/become resolved. " diagnostics appear/become resolved.
set signcolumn=yes set signcolumn=yes
"function! s:check_back_space() abort " Use tab for trigger completion with characters ahead and navigate
" let col = col('.') - 1 " NOTE: There's always complete item selected by default, you may want to enable
" return !col || getline('.')[col - 1] =~# '\s' " no select by `"suggest.noselect": true` in your configuration file
"endfunction " NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" " other plugin before putting this into your config
"" Use tab for trigger completion with characters ahead and navigate.
"" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
"" other plugin before putting this into your config.
"inoremap <silent><expr> <TAB>
" \ pumvisible() ? "\<C-n>" :
" \ <SID>check_back_space() ? "\<TAB>" :
" \ coc#refresh()
"inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
inoremap <silent><expr> <TAB> inoremap <silent><expr> <TAB>
\ coc#pum#visible() ? coc#pum#next(1) : \ coc#pum#visible() ? coc#pum#next(1) :
\ CheckBackspace() ? "\<Tab>" : \ CheckBackspace() ? "\<Tab>" :
@ -258,7 +249,7 @@ inoremap <silent><expr> <c-space> coc#refresh()
" " Use `complete_info` if your (Neo)Vim version supports it. " " Use `complete_info` if your (Neo)Vim version supports it.
" inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>" " inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
" else " else
" imap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>" " imap <expr> <cr> coc#pum#visible() ? "\<C-y>" : "\<C-g>u\<CR>"
" endif " endif
" Use `[g` and `]g` to navigate diagnostics " Use `[g` and `]g` to navigate diagnostics