system-dependant coc-settings
This commit is contained in:
14
vim/coc-lsp/coc-settings-cloudia.json
Normal file
14
vim/coc-lsp/coc-settings-cloudia.json
Normal 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"
|
||||
}
|
||||
5
vim/coc-lsp/coc-settings.json
Normal file
5
vim/coc-lsp/coc-settings.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"inlayHints.enable": false,
|
||||
"pyright.inlayHints.functionReturnTypes": false,
|
||||
"pyright.inlayHints.variableTypes": false
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"inlayHints.enable": false,
|
||||
"pyright.inlayHints.functionReturnTypes": false,
|
||||
"pyright.inlayHints.variableTypes": false
|
||||
}
|
||||
@@ -39,6 +39,8 @@ noremap <silent> <C-Down> :resize -3<CR>
|
||||
set backspace=indent,eol,start
|
||||
filetype plugin indent on
|
||||
|
||||
let hostname = substitute(system('hostname'), '\n', '', '')
|
||||
|
||||
if empty(glob('~/.vim/autoload/plug.vim')) "Если vim-plug не стоит
|
||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
@@ -178,6 +180,11 @@ let g:ansible_yamlKeyName = 'yamlKey'
|
||||
"
|
||||
" 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']
|
||||
function! s:enable_coc_for_type()
|
||||
let l:filesuffix_whitelist = ['py', 'sh', 'go']
|
||||
@@ -186,7 +193,7 @@ function! s:enable_coc_for_type()
|
||||
endif
|
||||
endfunction
|
||||
autocmd BufRead,BufNewFile * call s:enable_coc_for_type()
|
||||
source ~/.vim/coc.vim
|
||||
source ~/.vim/coc-lsp/coc.vim
|
||||
|
||||
"
|
||||
" vim-sneak plugin settings
|
||||
|
||||
Reference in New Issue
Block a user