Skip to content

refactor: cwd to go - #3

Merged
vieitesss merged 65 commits into
mainfrom
refactor/cwd-to-go
Jun 5, 2026
Merged

refactor: cwd to go#3
vieitesss merged 65 commits into
mainfrom
refactor/cwd-to-go

Conversation

@vieitesss

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a small Go-based JSON-RPC server (built as bin/nvim-features) and a corresponding Neovim Lua client module (features/test-rpc) that connects over a per-process socket. It also includes a couple of config tweaks (miniharp notifications and an extra cwd path) and ignores the built binary output directory.

Changes:

  • Add a Go module with a simple JSON-RPC server exposing a Multiply method, plus build instructions.
  • Add a Lua features/test-rpc client that starts the Go binary, connects via socket, and sends JSON-RPC requests.
  • Minor config updates: disable miniharp notifications, add a cwd path, and ignore bin/.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
lua/plugins.lua Disables miniharp notifications via config.
lua/features/test-rpc/init.lua Adds Lua client to start/connect to a socket-based JSON-RPC server and send Multiply requests.
init.lua Adds an extra path to the cwd feature configuration.
go/README.md Documents the new Go “features” area and test-rpc.
go/main.go Implements the Go JSON-RPC server and Unix-socket listener.
go/justfile Adds a build recipe to produce bin/nvim-features.
go/go.mod Introduces the Go module definition and dependencies.
go/go.sum Adds dependency checksums.
go/features/cwd/main.go Implements the Multiply RPC handler (currently under cwd package).
.gitignore Ignores the generated bin/ directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread go/main.go Outdated
Comment thread go/main.go
Comment thread go/main.go Outdated
Comment thread go/README.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 10 changed files in this pull request and generated 7 comments.

Comment thread go/main.go
Comment thread nvim-pack-lock.json
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread go/features/cwd/main.go Outdated
Comment thread lua/features/test-rpc/init.lua Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 20 changed files in this pull request and generated 7 comments.

Comment thread lua/features/rpc.lua
Comment thread lua/features/cwd/init.lua Outdated
Comment thread go/features/cwd/cwd.go Outdated
Comment thread go/features/cwd/cwd_test.go
Comment thread go/features/cwd/cwd_test.go
Comment thread nvim-pack-lock.json Outdated
Comment thread lua/features/rpc.lua

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 20 changed files in this pull request and generated 7 comments.

Comment thread go/features/cwd/cwd.go Outdated
Comment thread lua/features/cwd/init.lua Outdated
Comment thread lua/features/cwd/init.lua Outdated
Comment thread lua/keymaps.lua Outdated
Comment thread nvim-pack-lock.json Outdated
Comment thread nvim-pack-lock.json Outdated
Comment thread go/features/cwd/cwd.go
- fix(cwd/go): correct normalize ~ expansion, preserve path in error msgs
- fix(cwd/lua): mark CwdConfig fields optional, fix warning msg format
- fix(keymaps): remove duplicate <leader>l mapping
- fix(lockfile): remove unused fzf-lua and rose-pine pins

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 20 changed files in this pull request and generated 2 comments.

Comment thread go/features/cwd/cwd.go
Comment thread lua/features/fzf/init.lua
vieitesss added 2 commits June 5, 2026 12:13
When a configured path cannot be normalized or read, log a warning and
continue to the next path instead of returning a hard error. This matches
the old Lua behavior where missing directories were gracefully skipped.
When the files pipeline exits with a non-zero, non-cancel code, notify
the user instead of silently doing nothing. Matches the error handling
pattern already used in find_elements.
@vieitesss
vieitesss requested a review from Copilot June 5, 2026 10:26
@vieitesss
vieitesss merged commit 50a15e8 into main Jun 5, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 20 changed files in this pull request and generated 3 comments.

Comment thread lua/features/rpc.lua
Comment thread lua/features/rpc.lua
Comment thread lua/features/rpc.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants