failed attempt to fix broken vim
This commit is contained in:
parent
c1bfc7e69e
commit
02476306b0
1 changed files with 8 additions and 17 deletions
|
|
@ -15,8 +15,8 @@ let g:ConqueGdb_GdbExe = 'arm-none-eabi-gdb'
|
|||
set completeopt=noinsert,menuone,noselect
|
||||
" tab to select
|
||||
" and don't hijack my enter key
|
||||
inoremap <expr><Tab> (pumvisible()?(empty(v:completed_item)?"\<C-n>":"\<C-y>"):"\<Tab>")
|
||||
inoremap <expr><CR> (pumvisible()?(empty(v:completed_item)?"\<CR>\<CR>":"\<C-y>"):"\<CR>")
|
||||
inoremap <expr><Tab> (coc#pum#visible()?(empty(v:completed_item)?"\<C-n>":"\<C-y>"):"\<Tab>")
|
||||
inoremap <expr><CR> (coc#pum#visible()?(empty(v:completed_item)?"\<CR>\<CR>":"\<C-y>"):"\<CR>")
|
||||
|
||||
"===== Compilation Error Navigation ====="
|
||||
nmap <silent> <C-k> <Plug>(coc-diagnostic-next-error)
|
||||
|
|
@ -219,20 +219,11 @@ set shortmess+=c
|
|||
" diagnostics appear/become resolved.
|
||||
set signcolumn=yes
|
||||
|
||||
"function! s:check_back_space() abort
|
||||
" let col = col('.') - 1
|
||||
" return !col || getline('.')[col - 1] =~# '\s'
|
||||
"endfunction
|
||||
"
|
||||
"" 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>"
|
||||
|
||||
" Use tab for trigger completion with characters ahead and navigate
|
||||
" NOTE: There's always complete item selected by default, you may want to enable
|
||||
" no select by `"suggest.noselect": true` in your configuration file
|
||||
" 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>
|
||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||
\ CheckBackspace() ? "\<Tab>" :
|
||||
|
|
@ -258,7 +249,7 @@ inoremap <silent><expr> <c-space> coc#refresh()
|
|||
" " Use `complete_info` if your (Neo)Vim version supports it.
|
||||
" inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||
" else
|
||||
" imap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||
" imap <expr> <cr> coc#pum#visible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||
" endif
|
||||
|
||||
" Use `[g` and `]g` to navigate diagnostics
|
||||
|
|
|
|||
Loading…
Reference in a new issue