nushell / nushell/nufmt

Integrate With Nu-lsp

Open
#194 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
230
Forks
40
Avg merge
15h 30m
Merged PRs (30d)
1

Description

Can you integrate this with nu-lsp? I mean adding the ability to send format requests to nu-lsp, and have nu-lsp try to use the nufmt CLI if it's available on the system. This will make things match easier for the editor to work with.

Integrating this with nu-lsp will, insha'Allah, make things much easier for editors, because most of the editers these days support lsp.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the nu-lsp formatting request flow and nufmt's CLI entry point to understand how the two projects can communicate. Trace how format requests are handled and how the CLI is discovered; done means nu-lsp can use nufmt when it is available and editors receive the resulting formatting edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.