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

LSP-nsis

by idleberg ST4

No description provided

Labels lsp, nsis

Details

  • 0.2.10
  • github.​com
  • github.​com
  • 2 weeks ago
  • 22 minutes ago
  • 4 months ago

Installs

  • Total 12
  • Win 9
  • Mac 2
  • Linux 1
Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22
Windows 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 1 0 0 0 2 0 0 0 0 0 0 0 0
Mac 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
Linux 0 0 0 1 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-nsis

License Release Package Control Downloads

NSIS support for Sublime Text, via nsis-lsp and the LSP package.

Features

Code actions, completions, compiler diagnostics, document formatting, document symbols, go-to-definition, find references, hover documentation, rename symbol, and signature help.

Diagnostics require the makensis compiler. Without it the server still starts, and everything else works.

Installation

  1. Install LSP and NSIS — the latter provides the source.nsis syntax this package binds to.
  2. Install LSP-nsis.

The language server is downloaded automatically on first use and kept in sync with the version pinned in plugin.py. To use your own build instead, set an absolute path:

Error: language “jsonc” is not supported
// Preferences: LSP-nsis Settings
{
  "server_path": "/usr/local/bin/nsis-lsp",
}

An absolute path matters here: Sublime Text launched from Finder or the Dock inherits a minimal PATH that generally excludes /usr/local/bin, so a bare nsis-lsp may resolve when you launch from a shell and fail when you launch from the Dock.

Configuration

Open the settings via Preferences → Package Settings → LSP → Servers → LSP-nsis, or from the command palette with Preferences: LSP-nsis Settings. Per-project overrides go under settings.LSP.LSP-nsis in a .sublime-project file.

Setting Default Description
diagnostics.preprocess_mode "ppo" Preprocessor mode for makensis: "ppo", "safe_ppo", or null.
diagnostics.enabled_on_save true Refresh diagnostics on save.
formatter.end_of_line null "lf", "crlf", or null to keep the document's own.
formatter.print_width 0 Wrap column; 0 disables wrapping.
formatter.trim_empty_lines true Strip trailing whitespace from empty lines.
formatter.single_quote false Prefer single over double quotes.
formatter.comment_style null "hash", "semi", or null to preserve comment markers.
makensis.path "" Path to makensis; empty looks it up on PATH.

These are passed as initializationOptions, so changes take effect after restarting the server (LSP: Restart Servers).

License

The MIT License - Feel free to use, modify, and distribute this code.