Skip to content

Commit

Permalink
fix(config): Could not find an executable binary on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
NavyD committed Jan 23, 2025
1 parent 36ca5ef commit 3e8affd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rustaceanvim/config/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ local RustaceanDefaultConfig = {
end,
---@type string[] | fun():(string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers): vim.lsp.rpc.PublicClient)
cmd = function()
return { 'rust-analyzer', '--log-file', RustaceanConfig.server.logfile }
return { vim.fn.exepath('rust-analyzer'), '--log-file', RustaceanConfig.server.logfile }
end,

---@type string | fun(filename: string, default: fun(filename: string):string|nil):string|nil
Expand Down

0 comments on commit 3e8affd

Please sign in to comment.