ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-vale-ls

by jdkato ST4

A vale-ls client for Sublime Text.

Labels lsp, vale

Details

Installs

  • Total 283
  • Win 71
  • Mac 120
  • Linux 92
Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27
Windows 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0
Mac 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

LSP-vale-ls

This is a helper package that automatically installs and updates vale-ls for Sublime Text. Vale is a syntax-aware linter for prose built with speed and extensibility in mind.

Requirements

To use this package, you must have the LSP package installed.

It's recommended, but not required, to install the LSP-json package which will provide auto-completion and validation for this package's settings.

Features

HoverProvider CompletionProvider
See in-editor documentation for any symbol. Autocomplete all StylesPath assets: Styles, Packages, Vocabularies, etc.
DocumentLinkProvider CodeActionProvider
Quickly navigate to external URLs. Fix alerts with a single click.

The server also provides:

  • Diagnostics: Vale's alerts, updated as you type rather than only on save (see lintOnChange and debounceMs).
  • CodeLensProvider: a per-document metrics lens — word count, reading time, and so on (see showMetrics).
  • Vocabulary code actions: accept a flagged term into your vocabulary, or reject it.

Configuration

There are multiple ways to configure the package and the language server.

  • Global configuration: Preferences > Package Settings > LSP > Servers > LSP-vale-ls
  • Project-specific configuration: From the Command Palette run Project: Edit Project and add your settings in:

    {
        "settings": {
            "LSP": {
                "LSP-vale-ls": {
                    "initialization_options": {
                        // Put your settings here
                    }
                }
            }
        }
    }
    

Settings

Setting Default Description
installVale true Install and update Vale automatically. If false, Vale must be installed and available on your $PATH.
syncOnStartup true Run vale sync when the server starts.
filter "" An output filter to apply when calling Vale.
configPath "" An absolute path to a .vale.ini file, used instead of the default search process.
valeBinaryPath "" An absolute path to the Vale binary to run, instead of the server-managed copy.
lintOnChange true Lint the buffer as it changes, not just when it's saved.
debounceMs 300 How long typing has to settle before linting, in milliseconds.
showMetrics true Show the document metrics code lens.
root "" An absolute path to the directory to run Vale from, instead of the document's workspace folder.

Commands

From the Command Palette:

  • LSP-vale-ls: Sync Configuration — download the packages and styles your .vale.ini asks for.
  • LSP-vale-ls: Install or Update Vale — install or update the server-managed copy of Vale.