system-dependant coc-settings

This commit is contained in:
Dmitry Chumak
2025-02-27 20:32:38 +03:00
parent 6c69e5e6eb
commit d8a74ec472
5 changed files with 27 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
{
"inlayHints.enable": false,
"pyright.inlayHints.functionReturnTypes": false,
"pyright.inlayHints.variableTypes": false,
"go.goplsOptions": {
"standaloneTags": ["ignore"],
"arcadiaIndexDirs": [
"cli/",
"api/",
"gateway/"
]
},
"go.goplsPath": "/Users/dmchumak/.ya/tools/v4/gopls-darwin-arm64/gopls"
}

View File

@@ -0,0 +1,5 @@
{
"inlayHints.enable": false,
"pyright.inlayHints.functionReturnTypes": false,
"pyright.inlayHints.variableTypes": false
}

View File

@@ -1,5 +0,0 @@
{
"inlayHints.enable": false,
"pyright.inlayHints.functionReturnTypes": false,
"pyright.inlayHints.variableTypes": false
}

View File

@@ -39,6 +39,8 @@ noremap <silent> <C-Down> :resize -3<CR>
set backspace=indent,eol,start set backspace=indent,eol,start
filetype plugin indent on filetype plugin indent on
let hostname = substitute(system('hostname'), '\n', '', '')
if empty(glob('~/.vim/autoload/plug.vim')) "Если vim-plug не стоит if empty(glob('~/.vim/autoload/plug.vim')) "Если vim-plug не стоит
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
@@ -178,6 +180,11 @@ let g:ansible_yamlKeyName = 'yamlKey'
" "
" CoC plugin settings " CoC plugin settings
" "
if hostname == "i113855042"
let g:coc_user_config = '~/.vim/coc-lsp/coc-settings-cloudia.json'
else
let g:coc_user_config = '~/.vim/coc-lsp/coc-settings.json'
endif
let g:coc_global_extensions = ['coc-pyright', 'coc-sh', 'coc-go'] let g:coc_global_extensions = ['coc-pyright', 'coc-sh', 'coc-go']
function! s:enable_coc_for_type() function! s:enable_coc_for_type()
let l:filesuffix_whitelist = ['py', 'sh', 'go'] let l:filesuffix_whitelist = ['py', 'sh', 'go']
@@ -186,7 +193,7 @@ function! s:enable_coc_for_type()
endif endif
endfunction endfunction
autocmd BufRead,BufNewFile * call s:enable_coc_for_type() autocmd BufRead,BufNewFile * call s:enable_coc_for_type()
source ~/.vim/coc.vim source ~/.vim/coc-lsp/coc.vim
" "
" vim-sneak plugin settings " vim-sneak plugin settings