forked from taylor/vimconfig
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcoc-settings.json
More file actions
101 lines (80 loc) · 2.88 KB
/
coc-settings.json
File metadata and controls
101 lines (80 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"coc.preferences.extensionUpdateCheck": "daily",
// "coc.preferences.formatOnSaveFiletypes": ["typescript", "typescriptreact"],
"[typescript]": {
"coc.preferences.formatOnSave": true
},
"[typescriptreact]": {
"coc.preferences.formatOnSave": true
},
// "suggest.floatEnable":false,
"signature.enable":false,
"dialog.floatHighlight": "CocFloating",
"dialog.floatBorderHighlight": "CocFloatingBorder",
// References:
// :help coc#config()
// https://github.com/neoclide/coc.nvim/blob/master/data/schema.json
// https://github.com/neoclide/coc.nvim/blob/master/doc/coc.txt
// https://github.com/neoclide/coc.nvim/wiki/Using-configuration-file
// // Enable preview (signatures, etc.) during completion
// "suggest.enablePreview": false,
// Sort completion items alphabetically rather than by length
"suggest.defaultSortMethod": "alphabetical",
// // Maxmium width of floating preview window
// "suggest.maxPreviewWidth": 80,
// Show signature below of the cursor rather than above
"signature.preferShownAbove": false,
// // Maxmium height of floating signature help window (defaults 8)
// "signature.maxWindowHeight": 16,
// keymaps for coc-list
"list.insertMappings": {
"<C-c>": "do:exit" // CTRL-C: close window
},
/*************
* coc-python
*************/
// Use Microsoft Python Language Server (LSP) instead of jedi
//"python.jediEnabled": false,
// Formtting provider (yapf, black, autopep8)
//"python.formatting.provider": "yapf",
/************
* coc-omni
************/
"coc.source.omni.filetypes": ["vim"],
/***************
* coc-explorer
***************/
"explorer.keyMappings.global": {
"l": "expand",
"L": "expandRecursive",
"H": "collapseRecursive",
"I": "toggleHidden",
"r": "refresh",
"R": "refresh",
// do not use expandable{Prev,Next}
"gk": false, "gj": false,
"<cr>": ["expandable?", ["expanded?", "collapse", "expand"], "open"],
"<c-v>": "open:vsplit",
"<c-x>": "open:split",
"<up>": "nodePrev",
"<down>": "nodeNext"
},
"explorer.width": 32,
"explorer.previewAction.onHover": false, // Do not show floating windows on hovering on nodes
"explorer.openAction.strategy": "previousWindow", // Use last used window when opening files
"explorer.icon.enableNerdfont": true, // Use nerd font icons
"explorer.git.showIgnored": false,
"explorer.file.hiddenRules": {
"extensions": ["o", "a", "obj", "pyc", "egg-info"],
"patternMatches": ["^\\.", "^__pycache__$"],
"filenames": []
},
/**************************
* custom language servers
**************************/
"languageserver": {
/* see [Optional language servers] section in ~/.vimrc (dynamic LSP registration)
References: https://github.com/neoclide/coc.nvim/wiki/Language-servers */
},
"snippets.ultisnips.pythonPrompt": false
}