coc-git 2.5.4 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +11 -8
- package/lib/index.js +50 -117
- package/package.json +51 -5
package/Readme.md
CHANGED
|
@@ -6,13 +6,6 @@ Git integration of [coc.nvim](https://github.com/neoclide/coc.nvim).
|
|
|
6
6
|
use plugin like [vim-fugitive](https://github.com/tpope/vim-fugitive) at the
|
|
7
7
|
same time.
|
|
8
8
|
|
|
9
|
-
## Supporting
|
|
10
|
-
|
|
11
|
-
If you like my extension, consider supporting me on Patreon or PayPal:
|
|
12
|
-
|
|
13
|
-
<a href="https://www.patreon.com/chemzqm"><img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Patreon donate button" /> </a>
|
|
14
|
-
<a href="https://www.paypal.com/paypalme/chezqm"><img src="https://werwolv.net/assets/paypal_banner.png" alt="PayPal donate button" /> </a>
|
|
15
|
-
|
|
16
9
|
## Install
|
|
17
10
|
|
|
18
11
|
In your vim/neovim, run command:
|
|
@@ -140,6 +133,9 @@ if your have highlight groups defined for vim-gitgutter, you can use:
|
|
|
140
133
|
"git.changeRemovedSign.hlGroup": "GitGutterChangeDelete",
|
|
141
134
|
```
|
|
142
135
|
|
|
136
|
+
When you have `git.addGBlameToVirtualText` enabled, use command
|
|
137
|
+
`let g:coc_git_hide_blame_virtual_text = !get(g:, 'coc_git_hide_blame_virtual_text', 0)` to dynamic toggle virtual text.
|
|
138
|
+
|
|
143
139
|
## Usage
|
|
144
140
|
|
|
145
141
|
### Statusline integration
|
|
@@ -265,7 +261,14 @@ Multiple repositories can be specified using comma separation, like this: `githu
|
|
|
265
261
|
|
|
266
262
|
Q: Virtual text not working.
|
|
267
263
|
|
|
268
|
-
A: Make sure your neovim support virtual text by command `:echo
|
|
264
|
+
A: Make sure your neovim/vim support virtual text by command `:echo has('nvim-0.5.0') || has('patch-9.0.0067')`.
|
|
265
|
+
|
|
266
|
+
## Supporting
|
|
267
|
+
|
|
268
|
+
If you like my extension, consider supporting me on Patreon or PayPal:
|
|
269
|
+
|
|
270
|
+
<a href="https://www.patreon.com/chemzqm"><img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Patreon donate button" /> </a>
|
|
271
|
+
<a href="https://www.paypal.com/paypalme/chezqm"><img src="https://werwolv.net/assets/paypal_banner.png" alt="PayPal donate button" /> </a>
|
|
269
272
|
|
|
270
273
|
## License
|
|
271
274
|
|
package/lib/index.js
CHANGED
|
@@ -936,107 +936,6 @@ var require_debounce = __commonJS((exports2, module2) => {
|
|
|
936
936
|
module2.exports = debounce3;
|
|
937
937
|
});
|
|
938
938
|
|
|
939
|
-
// node_modules/uuid/deprecate.js
|
|
940
|
-
var require_deprecate = __commonJS((exports2, module2) => {
|
|
941
|
-
var deprecate;
|
|
942
|
-
try {
|
|
943
|
-
const util2 = require("util");
|
|
944
|
-
deprecate = util2.deprecate;
|
|
945
|
-
} catch (err) {
|
|
946
|
-
deprecate = function deprecate2(fn, msg) {
|
|
947
|
-
var warned = false;
|
|
948
|
-
function deprecated() {
|
|
949
|
-
if (!warned) {
|
|
950
|
-
console.warn(msg);
|
|
951
|
-
warned = true;
|
|
952
|
-
}
|
|
953
|
-
return fn.apply(this, arguments);
|
|
954
|
-
}
|
|
955
|
-
return deprecated;
|
|
956
|
-
};
|
|
957
|
-
}
|
|
958
|
-
module2.exports = deprecate;
|
|
959
|
-
});
|
|
960
|
-
|
|
961
|
-
// node_modules/uuid/dist/rng.js
|
|
962
|
-
var require_rng = __commonJS((exports2, module2) => {
|
|
963
|
-
"use strict";
|
|
964
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
965
|
-
value: true
|
|
966
|
-
});
|
|
967
|
-
exports2.default = rng;
|
|
968
|
-
var _crypto = _interopRequireDefault(require("crypto"));
|
|
969
|
-
function _interopRequireDefault(obj) {
|
|
970
|
-
return obj && obj.__esModule ? obj : {default: obj};
|
|
971
|
-
}
|
|
972
|
-
function rng() {
|
|
973
|
-
return _crypto.default.randomBytes(16);
|
|
974
|
-
}
|
|
975
|
-
module2.exports = exports2.default;
|
|
976
|
-
});
|
|
977
|
-
|
|
978
|
-
// node_modules/uuid/dist/bytesToUuid.js
|
|
979
|
-
var require_bytesToUuid = __commonJS((exports2, module2) => {
|
|
980
|
-
"use strict";
|
|
981
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
982
|
-
value: true
|
|
983
|
-
});
|
|
984
|
-
exports2.default = void 0;
|
|
985
|
-
var byteToHex = [];
|
|
986
|
-
for (var i = 0; i < 256; ++i) {
|
|
987
|
-
byteToHex[i] = (i + 256).toString(16).substr(1);
|
|
988
|
-
}
|
|
989
|
-
function bytesToUuid(buf, offset) {
|
|
990
|
-
var i2 = offset || 0;
|
|
991
|
-
var bth = byteToHex;
|
|
992
|
-
return [bth[buf[i2++]], bth[buf[i2++]], bth[buf[i2++]], bth[buf[i2++]], "-", bth[buf[i2++]], bth[buf[i2++]], "-", bth[buf[i2++]], bth[buf[i2++]], "-", bth[buf[i2++]], bth[buf[i2++]], "-", bth[buf[i2++]], bth[buf[i2++]], bth[buf[i2++]], bth[buf[i2++]], bth[buf[i2++]], bth[buf[i2++]]].join("");
|
|
993
|
-
}
|
|
994
|
-
var _default = bytesToUuid;
|
|
995
|
-
exports2.default = _default;
|
|
996
|
-
module2.exports = exports2.default;
|
|
997
|
-
});
|
|
998
|
-
|
|
999
|
-
// node_modules/uuid/dist/v4.js
|
|
1000
|
-
var require_v4 = __commonJS((exports2, module2) => {
|
|
1001
|
-
"use strict";
|
|
1002
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1003
|
-
value: true
|
|
1004
|
-
});
|
|
1005
|
-
exports2.default = void 0;
|
|
1006
|
-
var _rng = _interopRequireDefault(require_rng());
|
|
1007
|
-
var _bytesToUuid = _interopRequireDefault(require_bytesToUuid());
|
|
1008
|
-
function _interopRequireDefault(obj) {
|
|
1009
|
-
return obj && obj.__esModule ? obj : {default: obj};
|
|
1010
|
-
}
|
|
1011
|
-
function v4(options, buf, offset) {
|
|
1012
|
-
var i = buf && offset || 0;
|
|
1013
|
-
if (typeof options == "string") {
|
|
1014
|
-
buf = options === "binary" ? new Array(16) : null;
|
|
1015
|
-
options = null;
|
|
1016
|
-
}
|
|
1017
|
-
options = options || {};
|
|
1018
|
-
var rnds = options.random || (options.rng || _rng.default)();
|
|
1019
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
1020
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
1021
|
-
if (buf) {
|
|
1022
|
-
for (var ii = 0; ii < 16; ++ii) {
|
|
1023
|
-
buf[i + ii] = rnds[ii];
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
return buf || (0, _bytesToUuid.default)(rnds);
|
|
1027
|
-
}
|
|
1028
|
-
var _default = v4;
|
|
1029
|
-
exports2.default = _default;
|
|
1030
|
-
module2.exports = exports2.default;
|
|
1031
|
-
});
|
|
1032
|
-
|
|
1033
|
-
// node_modules/uuid/v4.js
|
|
1034
|
-
var require_v42 = __commonJS((exports2, module2) => {
|
|
1035
|
-
var deprecate = require_deprecate();
|
|
1036
|
-
var v4 = require_v4();
|
|
1037
|
-
module2.exports = deprecate(v4, "Deep requiring like `const uuidv4 = require('uuid/v4');` is deprecated as of uuid@7.x. Please require the top-level module when using the Node.js CommonJS module or use ECMAScript Modules when bundling for the browser. See https://github.com/uuidjs/uuid#deep-requires-now-deprecated for more information.");
|
|
1038
|
-
});
|
|
1039
|
-
|
|
1040
939
|
// node_modules/safer-buffer/safer.js
|
|
1041
940
|
var require_safer = __commonJS((exports2, module2) => {
|
|
1042
941
|
"use strict";
|
|
@@ -5814,7 +5713,7 @@ var DocumentManager = class {
|
|
|
5814
5713
|
diffRevision: config.get("diffRevision", ""),
|
|
5815
5714
|
issueFormat: config.get("issueFormat", "#%i"),
|
|
5816
5715
|
virtualTextPrefix: config.get("virtualTextPrefix", " "),
|
|
5817
|
-
addGBlameToVirtualText:
|
|
5716
|
+
addGBlameToVirtualText: config.get("addGBlameToVirtualText", false),
|
|
5818
5717
|
addGBlameToBufferVar: config.get("addGBlameToBufferVar", false),
|
|
5819
5718
|
blameUseRealTime: config.get("blameUseRealTime", false),
|
|
5820
5719
|
enableGutters: config.get("enableGutters", true),
|
|
@@ -6038,7 +5937,46 @@ var import_fs2 = __toModule(require("fs"));
|
|
|
6038
5937
|
var import_os = __toModule(require("os"));
|
|
6039
5938
|
var import_path4 = __toModule(require("path"));
|
|
6040
5939
|
var import_util6 = __toModule(require("util"));
|
|
6041
|
-
|
|
5940
|
+
|
|
5941
|
+
// node_modules/uuid/dist/esm-node/rng.js
|
|
5942
|
+
var import_crypto = __toModule(require("crypto"));
|
|
5943
|
+
function rng() {
|
|
5944
|
+
return import_crypto.default.randomBytes(16);
|
|
5945
|
+
}
|
|
5946
|
+
|
|
5947
|
+
// node_modules/uuid/dist/esm-node/bytesToUuid.js
|
|
5948
|
+
var byteToHex = [];
|
|
5949
|
+
for (var i = 0; i < 256; ++i) {
|
|
5950
|
+
byteToHex[i] = (i + 256).toString(16).substr(1);
|
|
5951
|
+
}
|
|
5952
|
+
function bytesToUuid(buf, offset) {
|
|
5953
|
+
var i = offset || 0;
|
|
5954
|
+
var bth = byteToHex;
|
|
5955
|
+
return [bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], "-", bth[buf[i++]], bth[buf[i++]], "-", bth[buf[i++]], bth[buf[i++]], "-", bth[buf[i++]], bth[buf[i++]], "-", bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]]].join("");
|
|
5956
|
+
}
|
|
5957
|
+
var bytesToUuid_default = bytesToUuid;
|
|
5958
|
+
|
|
5959
|
+
// node_modules/uuid/dist/esm-node/v4.js
|
|
5960
|
+
function v4(options, buf, offset) {
|
|
5961
|
+
var i = buf && offset || 0;
|
|
5962
|
+
if (typeof options == "string") {
|
|
5963
|
+
buf = options === "binary" ? new Array(16) : null;
|
|
5964
|
+
options = null;
|
|
5965
|
+
}
|
|
5966
|
+
options = options || {};
|
|
5967
|
+
var rnds = options.random || (options.rng || rng)();
|
|
5968
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
5969
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
5970
|
+
if (buf) {
|
|
5971
|
+
for (var ii = 0; ii < 16; ++ii) {
|
|
5972
|
+
buf[i + ii] = rnds[ii];
|
|
5973
|
+
}
|
|
5974
|
+
}
|
|
5975
|
+
return buf || bytesToUuid_default(rnds);
|
|
5976
|
+
}
|
|
5977
|
+
var v4_default = v4;
|
|
5978
|
+
|
|
5979
|
+
// src/model/repo.ts
|
|
6042
5980
|
var Repo = class {
|
|
6043
5981
|
constructor(git, channel, root) {
|
|
6044
5982
|
this.git = git;
|
|
@@ -6191,8 +6129,8 @@ var Repo = class {
|
|
|
6191
6129
|
this.channel.append(e.stack);
|
|
6192
6130
|
return;
|
|
6193
6131
|
}
|
|
6194
|
-
const stagedFile = import_path4.default.join(import_os.default.tmpdir(), `coc-${
|
|
6195
|
-
const currentFile = import_path4.default.join(import_os.default.tmpdir(), `coc-${
|
|
6132
|
+
const stagedFile = import_path4.default.join(import_os.default.tmpdir(), `coc-${v4_default()}`);
|
|
6133
|
+
const currentFile = import_path4.default.join(import_os.default.tmpdir(), `coc-${v4_default()}`);
|
|
6196
6134
|
await import_util6.default.promisify(import_fs2.default.writeFile)(stagedFile, staged + "\n", "utf8");
|
|
6197
6135
|
await import_util6.default.promisify(import_fs2.default.writeFile)(currentFile, content, "utf8");
|
|
6198
6136
|
let output = await getStdout(`git --no-pager diff --no-ext-diff -p -U0 --no-color ${shellescape(stagedFile)} ${shellescape(currentFile)}`);
|
|
@@ -6822,7 +6760,7 @@ var GitBuffer = class {
|
|
|
6822
6760
|
line = line + adjust;
|
|
6823
6761
|
let chunk = chunks.find((o) => o.add.lnum <= line && o.add.lnum + o.add.count >= line);
|
|
6824
6762
|
if (chunk) {
|
|
6825
|
-
let content = "Staged
|
|
6763
|
+
let content = "Staged changes\n" + chunk.lines.join("\n");
|
|
6826
6764
|
await this.showDoc(content, "diff");
|
|
6827
6765
|
}
|
|
6828
6766
|
}
|
|
@@ -6849,7 +6787,7 @@ var GitBuffer = class {
|
|
|
6849
6787
|
let buffer = nvim.createBuffer(this.doc.bufnr);
|
|
6850
6788
|
let hide_blame = await nvim.getVar("coc_git_hide_blame_virtual_text");
|
|
6851
6789
|
if (hide_blame) {
|
|
6852
|
-
|
|
6790
|
+
buffer.clearNamespace(virtualTextSrcId);
|
|
6853
6791
|
} else {
|
|
6854
6792
|
if (addGBlameToBufferVar) {
|
|
6855
6793
|
nvim.pauseNotification();
|
|
@@ -6859,15 +6797,10 @@ var GitBuffer = class {
|
|
|
6859
6797
|
}
|
|
6860
6798
|
if (addGBlameToVirtualText) {
|
|
6861
6799
|
const prefix = this.config.virtualTextPrefix;
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
virt_text: [[prefix + blameText, "CocCodeLens"]]
|
|
6867
|
-
});
|
|
6868
|
-
} else {
|
|
6869
|
-
await buffer.setVirtualText(virtualTextSrcId, lnum - 1, [[prefix + blameText, "CocCodeLens"]]);
|
|
6870
|
-
}
|
|
6800
|
+
nvim.pauseNotification();
|
|
6801
|
+
buffer.clearNamespace(virtualTextSrcId);
|
|
6802
|
+
buffer.setVirtualText(virtualTextSrcId, lnum - 1, [[prefix + blameText, "CocCodeLens"]]);
|
|
6803
|
+
nvim.resumeNotification(true, true);
|
|
6871
6804
|
}
|
|
6872
6805
|
}
|
|
6873
6806
|
}
|
|
@@ -7456,7 +7389,7 @@ var GitBuffer = class {
|
|
|
7456
7389
|
buffer.setVar("coc_git_blame", "", true);
|
|
7457
7390
|
}
|
|
7458
7391
|
if (this.config.addGBlameToVirtualText) {
|
|
7459
|
-
buffer.
|
|
7392
|
+
buffer.clearNamespace(this.config.virtualTextSrcId);
|
|
7460
7393
|
}
|
|
7461
7394
|
nvim.resumeNotification(false, true);
|
|
7462
7395
|
this._disposed = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coc-git",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Git extension for coc.nvim",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"publisher": "chemzqm",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"git"
|
|
10
10
|
],
|
|
11
11
|
"engines": {
|
|
12
|
-
"coc": "^0.0.
|
|
12
|
+
"coc": "^0.0.82"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
@@ -86,26 +86,31 @@
|
|
|
86
86
|
"git.command": {
|
|
87
87
|
"type": "string",
|
|
88
88
|
"default": "git",
|
|
89
|
+
"scope": "application",
|
|
89
90
|
"description": "Command for git, could be absolute path of git executable."
|
|
90
91
|
},
|
|
91
92
|
"git.remoteName": {
|
|
92
93
|
"type": "string",
|
|
93
94
|
"default": "origin",
|
|
95
|
+
"scope": "window",
|
|
94
96
|
"description": "Remote name for fetch github issues."
|
|
95
97
|
},
|
|
96
98
|
"git.browserRemoteName": {
|
|
97
99
|
"type": "string",
|
|
98
100
|
"default": "",
|
|
101
|
+
"scope": "window",
|
|
99
102
|
"description": "Remote name for browserOpen and copyUrl."
|
|
100
103
|
},
|
|
101
104
|
"git.browserBranchName": {
|
|
102
105
|
"type": "string",
|
|
103
106
|
"default": "",
|
|
107
|
+
"scope": "window",
|
|
104
108
|
"description": "Branch name for browserOpen and copyUrl."
|
|
105
109
|
},
|
|
106
110
|
"git.urlFix": {
|
|
107
111
|
"type": "object",
|
|
108
112
|
"default": {},
|
|
113
|
+
"scope": "application",
|
|
109
114
|
"examples": [
|
|
110
115
|
{
|
|
111
116
|
"gitlab.org": [
|
|
@@ -128,76 +133,91 @@
|
|
|
128
133
|
"git.diffRevision": {
|
|
129
134
|
"type": "string",
|
|
130
135
|
"default": "",
|
|
136
|
+
"scope": "window",
|
|
131
137
|
"description": "Revision used for git diff used by gutters, default is current HEAD."
|
|
132
138
|
},
|
|
133
139
|
"git.issueFormat": {
|
|
134
140
|
"type": "string",
|
|
141
|
+
"scope": "application",
|
|
135
142
|
"default": "#%i",
|
|
136
143
|
"description": "Formatting string for issue completion. Supported interpolation variables: %i - issue id. %r - repository name. %o - organization/owner name. %t - issue title. %b - issue body. %c - issue created at. %a - issue author. %u - issue url."
|
|
137
144
|
},
|
|
138
145
|
"git.virtualTextPrefix": {
|
|
139
146
|
"type": "string",
|
|
140
147
|
"default": " ",
|
|
141
|
-
"
|
|
148
|
+
"scope": "application",
|
|
149
|
+
"description": "Prefix of git blame information to virtual text, require virtual text feature of vim/neovim."
|
|
142
150
|
},
|
|
143
151
|
"git.addGBlameToVirtualText": {
|
|
144
152
|
"type": "boolean",
|
|
145
153
|
"default": false,
|
|
146
|
-
"
|
|
154
|
+
"scope": "window",
|
|
155
|
+
"description": "Add git blame information to virtual text, require virtual text feature of vim/neovim."
|
|
147
156
|
},
|
|
148
157
|
"git.addGBlameToBufferVar": {
|
|
149
158
|
"type": "boolean",
|
|
150
159
|
"default": false,
|
|
160
|
+
"scope": "window",
|
|
151
161
|
"description": "Add git blame information to b:coc_git_blame."
|
|
152
162
|
},
|
|
153
163
|
"git.blameUseRealTime": {
|
|
154
164
|
"type": "boolean",
|
|
155
165
|
"default": false,
|
|
166
|
+
"scope": "window",
|
|
156
167
|
"description": "use real time in git blame info"
|
|
157
168
|
},
|
|
158
169
|
"git.branchCharacter": {
|
|
159
170
|
"type": "string",
|
|
160
171
|
"default": "",
|
|
172
|
+
"scope": "application",
|
|
161
173
|
"description": "Branch character used with g:coc_git_status"
|
|
162
174
|
},
|
|
163
175
|
"git.changedDecorator": {
|
|
164
176
|
"type": "string",
|
|
165
177
|
"default": "*",
|
|
178
|
+
"scope": "application",
|
|
166
179
|
"description": "Git changed decorator used with g:coc_git_status"
|
|
167
180
|
},
|
|
168
181
|
"git.conflictedDecorator": {
|
|
169
182
|
"type": "string",
|
|
170
183
|
"default": "x",
|
|
184
|
+
"scope": "application",
|
|
171
185
|
"description": "Git conflicted decorator used with g:coc_git_status"
|
|
172
186
|
},
|
|
173
187
|
"git.stagedDecorator": {
|
|
174
188
|
"type": "string",
|
|
175
189
|
"default": "●",
|
|
190
|
+
"scope": "application",
|
|
176
191
|
"description": "Git staged decorator used with g:coc_git_status"
|
|
177
192
|
},
|
|
178
193
|
"git.untrackedDecorator": {
|
|
179
194
|
"type": "string",
|
|
180
195
|
"default": "…",
|
|
196
|
+
"scope": "application",
|
|
181
197
|
"description": "Git untracked decorator used with g:coc_git_status"
|
|
182
198
|
},
|
|
183
199
|
"git.enableGlobalStatus": {
|
|
184
200
|
"type": "boolean",
|
|
185
201
|
"default": true,
|
|
202
|
+
"scope": "window",
|
|
186
203
|
"description": "Enable global g:coc_git_status."
|
|
187
204
|
},
|
|
188
205
|
"git.enableGutters": {
|
|
189
206
|
"type": "boolean",
|
|
190
207
|
"default": true,
|
|
208
|
+
"scope": "window",
|
|
191
209
|
"description": "Enable gutters in sign column."
|
|
192
210
|
},
|
|
193
211
|
"git.realtimeGutters": {
|
|
194
212
|
"type": "boolean",
|
|
195
213
|
"default": true,
|
|
214
|
+
"scope": "window",
|
|
196
215
|
"description": "Update gutters in realtime, default: true."
|
|
197
216
|
},
|
|
198
217
|
"git.signPriority": {
|
|
199
218
|
"type": "number",
|
|
200
219
|
"default": 10,
|
|
220
|
+
"scope": "application",
|
|
201
221
|
"description": "Priority of sign gutters, default to 10."
|
|
202
222
|
},
|
|
203
223
|
"git.pushArguments": {
|
|
@@ -207,6 +227,7 @@
|
|
|
207
227
|
],
|
|
208
228
|
"default": null,
|
|
209
229
|
"description": "Default arguments used for git.pushCode command, ex: [\"--force-with-lease\"]",
|
|
230
|
+
"scope": "window",
|
|
210
231
|
"items": {
|
|
211
232
|
"type": "string"
|
|
212
233
|
}
|
|
@@ -214,51 +235,61 @@
|
|
|
214
235
|
"git.changedSign.text": {
|
|
215
236
|
"type": "string",
|
|
216
237
|
"default": "~",
|
|
238
|
+
"scope": "application",
|
|
217
239
|
"description": "Text of changed sign."
|
|
218
240
|
},
|
|
219
241
|
"git.changedSign.hlGroup": {
|
|
220
242
|
"type": "string",
|
|
221
243
|
"default": "DiffChange",
|
|
244
|
+
"scope": "application",
|
|
222
245
|
"description": "Highlight group for changed sign."
|
|
223
246
|
},
|
|
224
247
|
"git.addedSign.text": {
|
|
225
248
|
"type": "string",
|
|
226
249
|
"default": "+",
|
|
250
|
+
"scope": "application",
|
|
227
251
|
"description": "Text of added sign."
|
|
228
252
|
},
|
|
229
253
|
"git.addedSign.hlGroup": {
|
|
230
254
|
"type": "string",
|
|
231
255
|
"default": "DiffAdd",
|
|
256
|
+
"scope": "application",
|
|
232
257
|
"description": "Highlight group for added sign."
|
|
233
258
|
},
|
|
234
259
|
"git.removedSign.text": {
|
|
235
260
|
"type": "string",
|
|
236
261
|
"default": "_",
|
|
262
|
+
"scope": "application",
|
|
237
263
|
"description": "Text of removed sign."
|
|
238
264
|
},
|
|
239
265
|
"git.removedSign.hlGroup": {
|
|
240
266
|
"type": "string",
|
|
241
267
|
"default": "DiffDelete",
|
|
268
|
+
"scope": "application",
|
|
242
269
|
"description": "Highlight group for removed sign."
|
|
243
270
|
},
|
|
244
271
|
"git.topRemovedSign.text": {
|
|
245
272
|
"type": "string",
|
|
246
273
|
"default": "‾",
|
|
274
|
+
"scope": "application",
|
|
247
275
|
"description": "Text of top removed sign."
|
|
248
276
|
},
|
|
249
277
|
"git.topRemovedSign.hlGroup": {
|
|
250
278
|
"type": "string",
|
|
251
279
|
"default": "DiffDelete",
|
|
280
|
+
"scope": "application",
|
|
252
281
|
"description": "Highlight group for top removed sign."
|
|
253
282
|
},
|
|
254
283
|
"git.changeRemovedSign.text": {
|
|
255
284
|
"type": "string",
|
|
256
285
|
"default": "≃",
|
|
286
|
+
"scope": "application",
|
|
257
287
|
"description": "Text of change removed sign."
|
|
258
288
|
},
|
|
259
289
|
"git.changeRemovedSign.hlGroup": {
|
|
260
290
|
"type": "string",
|
|
261
291
|
"default": "DiffChange",
|
|
292
|
+
"scope": "application",
|
|
262
293
|
"description": "Highlight group for change removed sign."
|
|
263
294
|
},
|
|
264
295
|
"git.semanticCommit.filetypes": {
|
|
@@ -270,6 +301,7 @@
|
|
|
270
301
|
"gitcommit",
|
|
271
302
|
"gina-commit"
|
|
272
303
|
],
|
|
304
|
+
"scope": "application",
|
|
273
305
|
"description": "Enabled filetypes",
|
|
274
306
|
"items": {
|
|
275
307
|
"type": "string"
|
|
@@ -278,22 +310,26 @@
|
|
|
278
310
|
"git.semanticCommit.scope": {
|
|
279
311
|
"type": "boolean",
|
|
280
312
|
"default": true,
|
|
313
|
+
"scope": "application",
|
|
281
314
|
"description": "Commit message with scope field"
|
|
282
315
|
},
|
|
283
316
|
"git.splitWindowCommand": {
|
|
284
317
|
"type": "string",
|
|
285
318
|
"default": "above sp",
|
|
319
|
+
"scope": "application",
|
|
286
320
|
"description": "Command used when split new window for show commit."
|
|
287
321
|
},
|
|
288
322
|
"git.showCommitInFloating": {
|
|
289
323
|
"type": "boolean",
|
|
290
324
|
"default": false,
|
|
325
|
+
"scope": "application",
|
|
291
326
|
"description": "Show commit in floating or popup window"
|
|
292
327
|
},
|
|
293
328
|
"git.floatConfig": {
|
|
294
329
|
"type": "object",
|
|
295
330
|
"description": "Configure style of float window/popup, extends from floatFactory.floatConfig",
|
|
296
331
|
"additionalProperties": false,
|
|
332
|
+
"scope": "application",
|
|
297
333
|
"properties": {
|
|
298
334
|
"border": {
|
|
299
335
|
"type": "boolean",
|
|
@@ -355,6 +391,7 @@
|
|
|
355
391
|
},
|
|
356
392
|
"git.gitlab.hosts": {
|
|
357
393
|
"type": "array",
|
|
394
|
+
"scope": "window",
|
|
358
395
|
"default": [
|
|
359
396
|
"gitlab.com"
|
|
360
397
|
],
|
|
@@ -362,26 +399,31 @@
|
|
|
362
399
|
},
|
|
363
400
|
"git.conflict.enabled": {
|
|
364
401
|
"type": "boolean",
|
|
402
|
+
"scope": "application",
|
|
365
403
|
"default": true,
|
|
366
404
|
"description": "Enable highlight conflict lines."
|
|
367
405
|
},
|
|
368
406
|
"git.conflict.current.hlGroup": {
|
|
369
407
|
"type": "string",
|
|
370
408
|
"default": "DiffChange",
|
|
409
|
+
"scope": "application",
|
|
371
410
|
"description": "Highlight group for the current version of a merge conflict."
|
|
372
411
|
},
|
|
373
412
|
"git.conflict.incoming.hlGroup": {
|
|
374
413
|
"type": "string",
|
|
375
414
|
"default": "DiffAdd",
|
|
415
|
+
"scope": "application",
|
|
376
416
|
"description": "Highlight group for the incoming version of a merge conflict."
|
|
377
417
|
},
|
|
378
418
|
"git.gstatus.saveBeforeOpen": {
|
|
379
419
|
"type": "boolean",
|
|
380
420
|
"default": "false",
|
|
421
|
+
"scope": "application",
|
|
381
422
|
"description": "Auto save opened files before open list."
|
|
382
423
|
},
|
|
383
424
|
"coc.source.issues.enable": {
|
|
384
425
|
"type": "boolean",
|
|
426
|
+
"scope": "application",
|
|
385
427
|
"default": true
|
|
386
428
|
},
|
|
387
429
|
"coc.source.issues.triggerCharacters": {
|
|
@@ -389,16 +431,19 @@
|
|
|
389
431
|
"default": [
|
|
390
432
|
"#"
|
|
391
433
|
],
|
|
434
|
+
"scope": "application",
|
|
392
435
|
"items": {
|
|
393
436
|
"type": "string"
|
|
394
437
|
}
|
|
395
438
|
},
|
|
396
439
|
"coc.source.issues.priority": {
|
|
397
440
|
"type": "integer",
|
|
441
|
+
"scope": "application",
|
|
398
442
|
"default": 99
|
|
399
443
|
},
|
|
400
444
|
"coc.source.issues.shortcut": {
|
|
401
445
|
"type": "string",
|
|
446
|
+
"scope": "application",
|
|
402
447
|
"default": "[I]"
|
|
403
448
|
},
|
|
404
449
|
"coc.source.issues.filetypes": {
|
|
@@ -411,6 +456,7 @@
|
|
|
411
456
|
"gina-commit"
|
|
412
457
|
],
|
|
413
458
|
"description": "Enabled filetypes",
|
|
459
|
+
"scope": "application",
|
|
414
460
|
"items": {
|
|
415
461
|
"type": "string"
|
|
416
462
|
}
|
|
@@ -427,7 +473,7 @@
|
|
|
427
473
|
"@types/node": "^12.12.0",
|
|
428
474
|
"@types/uuid": "^7.0.1",
|
|
429
475
|
"@types/which": "^1.3.2",
|
|
430
|
-
"coc.nvim": "^0.0.83-next.
|
|
476
|
+
"coc.nvim": "^0.0.83-next.14",
|
|
431
477
|
"colors": "^1.4.0",
|
|
432
478
|
"debounce": "^1.2.0",
|
|
433
479
|
"esbuild": "^0.8.29",
|