@yaegassy/coc-marksman 0.2.9 → 0.3.0

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 (3) hide show
  1. package/README.md +13 -0
  2. package/lib/index.js +10 -3
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -28,6 +28,19 @@ See the [project page](https://github.com/artempyanykh/marksman) for more detail
28
28
  - `marksman.restartServer`: Marksman: Restart Server
29
29
  - `marksman.showOutputChannel`: Marksman: Show Output
30
30
 
31
+ ## Code Actions
32
+
33
+ Marksman has a code action to create and update a table of contents of a document.
34
+
35
+ - `Create a Table of Contents`
36
+ - REF: <https://github.com/artempyanykh/marksman#code-actions>
37
+
38
+ This code action is `source` level. Please key mapping `<Plug>(coc-codeaction-source)` in coc.nvim to call it.
39
+
40
+ ```vim
41
+ nmap <leader>as <Plug>(coc-codeaction-source)
42
+ ```
43
+
31
44
  ## Thanks
32
45
 
33
46
  - <https://github.com/artempyanykh/marksman>
package/lib/index.js CHANGED
@@ -3220,7 +3220,7 @@ var import_stream2 = __toESM(require("stream"));
3220
3220
  var import_util = require("util");
3221
3221
 
3222
3222
  // package.json
3223
- var marksmanBinVersion = "2023-04-06";
3223
+ var marksmanBinVersion = "2023-06-01";
3224
3224
 
3225
3225
  // src/constant.ts
3226
3226
  var MARKSMAN_BIN_VERSION = marksmanBinVersion;
@@ -3333,14 +3333,21 @@ function serverBinName() {
3333
3333
  }
3334
3334
  function releaseBinName() {
3335
3335
  const platform = import_os.default.platform();
3336
+ const arch = import_os.default.arch();
3336
3337
  if (platform === "win32") {
3337
3338
  return "marksman-windows.exe";
3338
3339
  } else if (platform === "darwin") {
3339
3340
  return "marksman-macos";
3340
3341
  } else if (platform === "linux") {
3341
- return "marksman-linux";
3342
+ if (arch === "x64") {
3343
+ return "marksman-linux-x64";
3344
+ } else if (arch === "arm64") {
3345
+ return "marksman-linux-arm64";
3346
+ } else {
3347
+ throw new Error(`Unsupported ${arch} ${platform}`);
3348
+ }
3342
3349
  } else {
3343
- throw new Error(`Unsupported platform: ${platform}`);
3350
+ throw new Error(`Unsupported ${arch} ${platform}`);
3344
3351
  }
3345
3352
  }
3346
3353
  function releaseDownloadUrl() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yaegassy/coc-marksman",
3
- "version": "0.2.9",
4
- "marksmanBinVersion": "2023-04-06",
3
+ "version": "0.3.0",
4
+ "marksmanBinVersion": "2023-06-01",
5
5
  "description": "Marksman (Markdown LSP server) extension for coc.nvim",
6
6
  "author": "yaegassy <yosstools@gmail.com>",
7
7
  "license": "MIT",
@@ -47,11 +47,11 @@
47
47
  "@types/node": "^18.15.11",
48
48
  "@types/node-fetch": "^2.5.8",
49
49
  "@types/which": "^2.0.1",
50
- "@typescript-eslint/eslint-plugin": "^5.57.0",
51
- "@typescript-eslint/parser": "^5.57.0",
50
+ "@typescript-eslint/eslint-plugin": "^5.58.0",
51
+ "@typescript-eslint/parser": "^5.58.0",
52
52
  "coc.nvim": "^0.0.82",
53
53
  "esbuild": "^0.16.17",
54
- "eslint": "^8.37.0",
54
+ "eslint": "^8.38.0",
55
55
  "eslint-config-prettier": "^8.8.0",
56
56
  "eslint-plugin-prettier": "^4.2.1",
57
57
  "prettier": "^2.8.7",
@@ -97,7 +97,7 @@
97
97
  "messages",
98
98
  "verbose"
99
99
  ],
100
- "default": "verbose",
100
+ "default": "off",
101
101
  "description": "Level of verbosity in communicating with the server",
102
102
  "scope": "window"
103
103
  }