LSP-statac
Statac's language server for Sublime Text.
Details
Installs
- Total 1
- Win 1
- Mac 0
- Linux 0
| Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | 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 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 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 | 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 | 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-statac
Statac's language server in Sublime Text, through
the LSP package. In a Statac
site, Sublime Text shows each problem statac check finds as you type,
and offers completion, hover, go to definition, find references and
fixes. When you rename a page's file, the links to it are updated.
It needs Statac 0.7.0 or later. With an earlier Statac, Sublime Text says only that the server stopped.
Installing
- Install Statac.
- In Sublime Text, run Package Control: Install Package, and install
LSP, thenLSP-statac. - Open a folder that holds a Statac site: a
statac.yamlfile, or acontentfolder.
The server starts for a file inside a site and leaves every other file alone.
Keys
Sublime Text gives hover, fixes and go to definition no key of its own. To add them, run Preferences: Key Bindings and add these lines to your own key bindings, choosing other keys if these are taken:
[
{
"keys": ["primary+k", "primary+i"],
"command": "lsp_hover",
"context": [{"key": "lsp.session_with_capability", "operand": "hoverProvider"}]
},
{
"keys": ["primary+."],
"command": "lsp_code_actions",
"context": [{"key": "lsp.session_with_capability", "operand": "codeActionProvider"}]
},
{
"keys": ["f12"],
"command": "lsp_symbol_definition",
"args": {"side_by_side": false, "force_group": true, "fallback": true, "group": -1},
"context": [
{"key": "lsp.session_with_capability", "operand": "definitionProvider"},
{"key": "auto_complete_visible", "operand": false}
]
}
]
Find references is on Shift+F12 already. To rename a page's file and update the links to it, run LSP: Rename Path, or choose LSP: Rename… on the file in the sidebar.
Settings
Sublime Text looks for statac on the path, then where Homebrew, the
install script, Cargo, Scoop and winget put it. To use another, run
Preferences: LSP-statac Settings and give its whole path:
{
"command": ["/path/to/statac", "lsp"]
}
More
Licence
MIT or Apache-2.0, at your choice: LICENSE-MIT, LICENSE-APACHE.