coc-git 2.5.0 → 2.5.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.
Files changed (2) hide show
  1. package/lib/index.js +5 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -7403,7 +7403,11 @@ var GitBuffer = class {
7403
7403
  async showDoc(content, filetype = "diff") {
7404
7404
  if (import_coc12.workspace.floatSupported) {
7405
7405
  let docs = [{content, filetype}];
7406
- await this.floatFactory.show(docs);
7406
+ let floatConfig = {};
7407
+ if (import_coc12.workspace.getConfiguration("hover").get("floatConfig", {})["border"]) {
7408
+ floatConfig = {border: [1, 1, 1, 1]};
7409
+ }
7410
+ await this.floatFactory.show(docs, floatConfig);
7407
7411
  } else {
7408
7412
  const lines = content.split("\n");
7409
7413
  import_coc12.workspace.nvim.call("coc#util#preview_info", [lines, "diff"], true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coc-git",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Git extension for coc.nvim",
5
5
  "main": "lib/index.js",
6
6
  "publisher": "chemzqm",