Skip to content

Commit

Permalink
fix(ssr): broken when command contains spaces (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Dec 20, 2023
1 parent 9afd89a commit ddc6288
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.10.4] - 2023-12-20

### Fixed

- SSR: Broken when command contains spaces [[#104](https://github.com/mrcjkb/rustaceanvim/issues/104)].

## [3.10.3] - 2023-12-19

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ for more configuration options.
```lua
vim.cmd.RustLsp { 'ssr', 'query' --[[ optional ]] }
```

![tty](https://github.com/mrcjkb/rustaceanvim/assets/12857160/b61fbc56-ab53-48e6-bfdd-eb8d4de28795)

</details>

<details>
Expand Down
2 changes: 1 addition & 1 deletion lua/rustaceanvim/commands/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ local command_tbl = {
vim.notify('ssr: called without a query', vim.log.levels.ERROR)
return
end
local query = args[1]
local query = table.concat(args, ' ')
require('rustaceanvim.commands.ssr')(query)
end,
reloadWorkspace = function()
Expand Down

0 comments on commit ddc6288

Please sign in to comment.