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.
- package/lib/index.js +5 -1
- 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
|
-
|
|
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);
|