diff --git a/LSP-vale-ls.sublime-settings b/LSP-vale-ls.sublime-settings index d16f665..2ffddae 100644 --- a/LSP-vale-ls.sublime-settings +++ b/LSP-vale-ls.sublime-settings @@ -1,8 +1,27 @@ { "initializationOptions": { - "installVale": true, - "filter": "", - "config": "" + // Install and update Vale automatically. + // + // If false, the Vale executable must be installed and available on + // your $PATH. + "vale-ls.installVale": true, + // Runs `vale sync` upon starting the server. + // + // Also available as a command: "LSP-vale-ls: Sync Configuration". + "vale-ls.syncOnStartup": true, + // An output filter to apply when calling Vale. + // + // Example: + // + // "vale-ls.filter": ".Level in ['warning', 'error']" + // + // See https://vale.sh/manual/filter/ for more information. + "vale-ls.filter": "", + // An absolute path to a Vale configuration file (`.vale.ini`). + // + // In general, you should leave this blank and rely on the default + // search process instead. + "vale-ls.configPath": "" }, "selector": "source.ini | source.yaml | text.html.markdown | text.restructuredtext | text.asciidoc", "command": [ diff --git a/plugin.py b/plugin.py index 9c79566..f5f23a7 100644 --- a/plugin.py +++ b/plugin.py @@ -14,7 +14,7 @@ # # After changing this tag, go through the server settings again to see if any # new server settings are added or old ones removed. -TAG = "v0.2.0" +TAG = "v0.3.0" URL = "https://github.com/errata-ai/vale-ls/releases/download/{tag}/vale-ls-{arch}-{platform}.zip" diff --git a/sublime-package.json b/sublime-package.json index d52b043..90a48eb 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -20,17 +20,22 @@ "properties": { "initializationOptions": { "properties": { - "installVale": { + "vale-ls.installVale": { "default": true, "description": "Install and update Vale automatically.", "type": "boolean" }, - "filter": { + "vale-ls.syncOnStart": { + "default": true, + "description": "Runs `vale sync` upon starting the server.", + "type": "boolean" + }, + "vale-ls.filter": { "default": "", "description": "An output filter to apply when calling Vale.", "type": "string" }, - "config": { + "vale-ls.configPath": { "default": "", "description": "An absolute path to a .vale.ini file to be used as the default configuration.", "type": "string"