Addec coc-settings, and made vim tab more reliables for coc

This commit is contained in:
ObeseTermite 2025-06-04 18:23:19 -07:00
parent f86693dd98
commit 8500c5965e
3 changed files with 14 additions and 0 deletions

3
coc-settings.json Normal file
View file

@ -0,0 +1,3 @@
{
"suggest.noselect": true
}

View file

@ -28,6 +28,9 @@ ln -sf ~/.dotfiles/rofi ~/.config/rofi/config.rasi
mkdir -p ~/.config/gtk-3.0
ln -sf ~/.dotfiles/gtksettings ~/.config/gtk-3.0/settings.ini
mkdir -p ~/.vim
ln -sf ~/.dotfiles/coc-settings.json ~/.vim/coc-settings.json
ln -sf ~/.dotfiles/picom.conf ~/.config/picom.conf
ln -sf ~/.dotfiles/bashrc ~/.bashrc
ln -sf ~/.dotfiles/bash_profile ~/.bash_profile

8
vimrc
View file

@ -31,12 +31,20 @@ set autoindent
set smartindent
set tags=./tags,tags;$HOME
function! CheckBackspace() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
inoremap <silent><expr> <TAB>
\ coc#pum#visible() ? coc#pum#next(1) :
\ CheckBackspace() ? "\<Tab>" :
\ coc#refresh()
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
inoremap <silent><expr> <c-@> coc#refresh()
packadd! termdebug