Addec coc-settings, and made vim tab more reliables for coc
This commit is contained in:
parent
f86693dd98
commit
8500c5965e
3
coc-settings.json
Normal file
3
coc-settings.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"suggest.noselect": true
|
||||||
|
}
|
3
install
3
install
|
@ -28,6 +28,9 @@ ln -sf ~/.dotfiles/rofi ~/.config/rofi/config.rasi
|
||||||
mkdir -p ~/.config/gtk-3.0
|
mkdir -p ~/.config/gtk-3.0
|
||||||
ln -sf ~/.dotfiles/gtksettings ~/.config/gtk-3.0/settings.ini
|
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/picom.conf ~/.config/picom.conf
|
||||||
ln -sf ~/.dotfiles/bashrc ~/.bashrc
|
ln -sf ~/.dotfiles/bashrc ~/.bashrc
|
||||||
ln -sf ~/.dotfiles/bash_profile ~/.bash_profile
|
ln -sf ~/.dotfiles/bash_profile ~/.bash_profile
|
||||||
|
|
8
vimrc
8
vimrc
|
@ -31,12 +31,20 @@ set autoindent
|
||||||
set smartindent
|
set smartindent
|
||||||
set tags=./tags,tags;$HOME
|
set tags=./tags,tags;$HOME
|
||||||
|
|
||||||
|
function! CheckBackspace() abort
|
||||||
|
let col = col('.') - 1
|
||||||
|
return !col || getline('.')[col - 1] =~# '\s'
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
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>" :
|
||||||
\ coc#refresh()
|
\ coc#refresh()
|
||||||
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
||||||
|
|
||||||
|
inoremap <silent><expr> <c-@> coc#refresh()
|
||||||
|
|
||||||
|
|
||||||
packadd! termdebug
|
packadd! termdebug
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue