Skip to main content

nifty_cli/
lsp.rs

1//! `nf lsp`: the language server editors start to check and navigate nifty code.
2
3use std::process::ExitCode;
4
5use crate::CommandResult;
6use crate::error::CliError;
7
8pub(crate) fn run() -> CommandResult {
9    nifty_lsp::run().map_err(|error| CliError::new(format!("language server stopped: {error}")))?;
10    Ok(ExitCode::SUCCESS)
11}