Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lsp/ruby_lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ return {
init_options = {
formatter = 'auto',
},
reuse_client = function(client, config)
before_init = function(_, config)
config.cmd_cwd = config.root_dir
Copy link
Member

@justinmk justinmk Oct 18, 2025

Choose a reason for hiding this comment

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

sadly, before_init happens after the cmd is invoked, which means setting the cmd_cwd won't have the effect that was intended here.

return client.config.cmd_cwd == config.cmd_cwd
end,
}