From 02476306b085b1dc7e20fe39b3f21f4ab8139f05 Mon Sep 17 00:00:00 2001 From: mehbark Date: Mon, 8 Dec 2025 19:53:18 -0500 Subject: [PATCH] failed attempt to fix broken vim --- nvim.conf.nix | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/nvim.conf.nix b/nvim.conf.nix index 01213c1..77ab98f 100644 --- a/nvim.conf.nix +++ b/nvim.conf.nix @@ -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 (pumvisible()?(empty(v:completed_item)?"\":"\"):"\") -inoremap (pumvisible()?(empty(v:completed_item)?"\\":"\"):"\") +inoremap (coc#pum#visible()?(empty(v:completed_item)?"\":"\"):"\") +inoremap (coc#pum#visible()?(empty(v:completed_item)?"\\":"\"):"\") "===== Compilation Error Navigation =====" nmap (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 ' to make sure tab is not mapped by -"" other plugin before putting this into your config. -"inoremap -" \ pumvisible() ? "\" : -" \ check_back_space() ? "\" : -" \ coc#refresh() -"inoremap pumvisible() ? "\" : "\" - +" 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 ' to make sure tab is not mapped by +" other plugin before putting this into your config inoremap \ coc#pum#visible() ? coc#pum#next(1) : \ CheckBackspace() ? "\" : @@ -258,7 +249,7 @@ inoremap coc#refresh() " " Use `complete_info` if your (Neo)Vim version supports it. " inoremap complete_info()["selected"] != "-1" ? "\" : "\u\" " else -" imap pumvisible() ? "\" : "\u\" +" imap coc#pum#visible() ? "\" : "\u\" " endif " Use `[g` and `]g` to navigate diagnostics