[vim] vimrc tabs to spaces

This commit is contained in:
2022-09-16 19:58:53 +03:00
parent e3aea319ab
commit b22190cbd3

View File

@@ -152,9 +152,9 @@ let g:coc_global_extensions = ['coc-pyright']
source ~/.vim/coc.vim
function! s:enable_coc_for_type()
let l:filesuffix_whitelist = ['py']
if index(l:filesuffix_whitelist, expand('%:e')) == -1
let b:coc_enabled = 0
endif
if index(l:filesuffix_whitelist, expand('%:e')) == -1
let b:coc_enabled = 0
endif
endfunction
autocmd BufRead,BufNewFile * call s:enable_coc_for_type()