Fix coc tab bug

This commit is contained in:
infidel 2022-04-15 14:35:02 +07:00
parent d4cea114fa
commit ae1344805a

5
.vimrc
View File

@ -114,6 +114,11 @@ inoremap <silent><expr> <TAB>
\ coc#refresh() \ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>" inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
"Coc vimlsp Highlighting "Coc vimlsp Highlighting
let g:markdown_fenced_languages = [ let g:markdown_fenced_languages = [
\ 'vim', \ 'vim',