vim: pass coc config as an object

parent d01b3e0e
......@@ -65,27 +65,48 @@ let g:coc_filetype_map = {
" 'diagnostic.displayByAle' Doesn't work well, for some reason...
let g:coc_user_config = {
\ 'coc.preferences.colorSupport': 0,
\ 'coc.preferences.hoverTarget': utils#has_floating_window() ? 'float' : 'echo',
\ 'suggest.autoTrigger': 'always',
\ 'suggest.noselect': 0,
\ 'suggest.echodocSupport': 1,
\ 'suggest.floatEnable': utils#has_floating_window(),
\ 'signature.target': utils#has_floating_window() ? 'float' : 'echo',
\ 'diagnostic.errorSign': '',
\ 'diagnostic.warningSign': '',
\ 'diagnostic.infoSign': utils#GetIcon('info'),
\ 'diagnostic.hintSign': utils#GetIcon('hint'),
\ 'diagnostic.messageTarget': utils#has_floating_window() ? 'float' : 'echo',
\ 'diagnostic.refreshOnInsertMode': 1,
\ 'diagnostic.locationlist': 1,
\ 'python.jediEnabled': 0,
\ 'python.linting': {
\ 'pylintUseMinimalCheckers': 0
\ },
\ 'coc.github.filetypes': ['gitcommit', 'markdown.ghpull'],
\ 'emmet.includeLanguages': { 'javascript': 'javascriptreact' },
\ 'codeLens.enable': 1
\ 'coc': {
\ 'preferences': {
\ 'colorSupport': 0,
\ 'hoverTarget': utils#has_floating_window() ? 'float' : 'echo',
\ },
\ 'github': {
\ 'filetype': ['gitcommit', 'markdown.ghpull'],
\ },
\ },
\ 'suggest': {
\ 'autoTrigger': 'always',
\ 'noselect': 0,
\ 'echodocSupport': 1,
\ 'floatEnable': utils#has_floating_window(),
\ },
\ 'signature': {
\ 'target': utils#has_floating_window() ? 'float' : 'echo',
\ },
\ 'diagnostic': {
\ 'errorSign': '',
\ 'warningSign': '',
\ 'infoSign': utils#GetIcon('info'),
\ 'hintSign': utils#GetIcon('hint'),
\ 'messageTarget': utils#has_floating_window() ? 'float' : 'echo',
\ 'refreshOnInsertMode': 1,
\ 'locationlist': 1,
\ },
\ 'python': {
\ 'jediEnabled': 0,
\ 'linting': {
\ 'pylintUseMinimalCheckers': 0
\ },
\ },
\ 'emmet': {
\ 'includeLanguages': { 'javascript': 'javascriptreact' },
\ },
\ 'codeLens': {
\ 'enable': 1,
\ },
\ 'rust': {
\ 'clippy_preference': 'on',
\ },
\ }
let s:languageservers = {}
......
{
"dependencies": {
"coc-emoji": ">=1.2.3",
"coc-rls": ">=1.1.4",
"coc-json": ">=1.2.4",
"coc-ultisnips": ">=1.2.3",
"coc-conjure": ">=0.2.2",
"coc-css": ">=1.2.2",
"coc-tailwindcss": ">=0.3.2",
"coc-emmet": ">=1.1.3",
"coc-emoji": ">=1.2.3",
"coc-github": ">=1.0.1",
"coc-html": ">=1.2.1",
"coc-json": ">=1.2.4",
"coc-phpls": ">=2.0.7",
"coc-python": ">=1.2.6",
"coc-rls": ">=1.1.4",
"coc-svg": ">=0.0.13",
"coc-tailwindcss": ">=0.3.2",
"coc-tsserver": ">=1.4.8",
"coc-ultisnips": ">=1.2.3",
"coc-vimlsp": ">=0.4.3",
"coc-phpls": ">=2.0.7",
"coc-yaml": ">=1.0.2",
"coc-html": ">=1.2.1",
"coc-tsserver": ">=1.4.5",
"coc-emmet": ">=1.1.3",
"coc-python": ">=1.2.6"
"coc-yaml": ">=1.0.2"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment