fix coc setup

This commit is contained in:
Diego Fernando Carrión 2023-02-09 17:17:45 +01:00
parent 35c8abefb7
commit 0196224d67
No known key found for this signature in database
GPG Key ID: 811EF2E03998BFC4
3 changed files with 15 additions and 101 deletions

View File

@ -131,14 +131,6 @@
repo = 'towolf/vim-helm' repo = 'towolf/vim-helm'
merge = false merge = false
[[custom_plugins]]
repo = 'jackMort/ChatGPT.nvim'
merge = false
[[custom_plugins]]
repo = 'MunifTanjim/nui.nvim'
merge = false
[[custom_plugins]] [[custom_plugins]]
repo = 'github/copilot.vim' repo = 'github/copilot.vim'
merge = false merge = false

View File

@ -25,7 +25,18 @@ function! myspacevim#after() abort
let g:neomake_go_enabled_makers = [] let g:neomake_go_enabled_makers = []
hi Normal guibg=NONE ctermbg=NONE hi Normal guibg=NONE ctermbg=NONE
hi EndOfBuffer guibg=NONE ctermbg=NONE hi EndOfBuffer guibg=NONE ctermbg=NONE
lua <<HERE let g:coc_global_extensions = [
require("chatgpt").setup({}) \'coc-json',
HERE \'coc-go',
\'@yaegassy/coc-pylsp',
\'coc-yaml',
\'coc-snippets',
\'coc-lua',
\'coc-solargraph',
\'coc-toml',
\'coc-docker',
\'coc-clangd',
\'coc-tsserver',
\'coc-html'
\]
endfunction endfunction

View File

@ -1,92 +1,3 @@
{ {
"languageserver": { "pylsp.builtin.enableInstallPylspMypy": true
"go": {
"command": "gopls",
"rootPatterns": ["go.mod"],
"trace.server": "verbose",
"filetypes": ["go"]
},
"bash": {
"command": "bash-language-server",
"args": ["start"],
"filetypes": ["sh"]
},
"clangd": {
"command": "clangd",
"rootPatterns": ["compile_flags.txt", "compile_commands.json"],
"filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"]
},
"dockerfile": {
"command": "docker-langserver",
"filetypes": ["dockerfile"],
"args": ["--stdio"]
},
"python": {
"command": "python",
"args": [
"-mpyls",
"-vv",
"--log-file",
"/tmp/lsp_python.log"
],
"trace.server": "verbose",
"filetypes": [
"python"
],
"settings": {
"pyls": {
"enable": true,
"trace": {
"server": "verbose"
},
"commandPath": "",
"configurationSources": [
"pycodestyle"
],
"plugins": {
"jedi_completion": {
"enabled": true
},
"jedi_hover": {
"enabled": true
},
"jedi_references": {
"enabled": true
},
"jedi_signature_help": {
"enabled": true
},
"jedi_symbols": {
"enabled": true,
"all_scopes": true
},
"mccabe": {
"enabled": true,
"threshold": 15
},
"preload": {
"enabled": true
},
"pycodestyle": {
"enabled": true
},
"pydocstyle": {
"enabled": false,
"match": "(?!test_).*\\.py",
"matchDir": "[^\\.].*"
},
"pyflakes": {
"enabled": true
},
"rope_completion": {
"enabled": true
},
"yapf": {
"enabled": true
}
}
}
}
}
}
} }