Nu-Lint
A simple AST-based linter for Nu shell scripts via LSP. See the repository of the underlying binary nu-lint for more information.
This extension works alongside:
Installation
- Install the nu-lint binary using cargo:
cargo install nu-lint (Cargo is installed with rustup)
- Install this extension from the VS Code Marketplace
- Open a Nushell (.nu) file - diagnostics and code actions are provided automatically via LSP.
Configuration
Extension Settings:
nu-lint.executablePath: Path to nu-lint executable (default: "nu-lint")
Alternative: No Extension
You can also use vscode-lspconfig instead of this extension:
// .vscode/settings.json
{
"vscode-lspconfig.serverConfigurations": [
{
"name": "nu-lint",
"document_selector": [{"language": "nushell"}, {"language": "nu"}],
"command": ["nu-lint", "--lsp"]
}
]
}
License
MIT
| |