LSP-nsis
No description provided
Details
Installs
- Total 4
- Win 3
- Mac 1
- Linux 0
| 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 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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-nsis
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
- Install LSP and NSIS
— the latter provides the
source.nsissyntax this package binds to. - 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:
// 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.