Fork of Nushell that shows LSP diagnostics inline in the REPL as you type. See crates/nu-diagnostics for features, recordings, usage and architecture.
The installed binary is still called
nu.nu-inline-diagnosticsis only the package/flake name.
Disclaimer: This fork was made to make it easier for people to experiment with inline diagnostics in the terminal for Nushell. As far as I know this is not too common yet. For the most-up-to date mainline Nushell features and development, please refer to the original repository. Otherwise, go ahead and play around with this fork.
Install a language protocol server (LSP server). I recommend nu-lint:
cargo install nu-lintBuild the main binary nu with a Rust compiler toolchain:
- For Nix users:
nix run .(or add this repo's flake to your system dependencies) - Otherwise, if you are on a more mainstream machine, install
rustupand:
cargo install --git https://github.com/wvhulle/nushellKeep in mind this will overwrite any other nu binary you have there (such as the official one).
Then configure a language server as described in usage.
You can file issues related to incorrect lints and fixes at nu-lint.