Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
fix(standalone): Consider binary/cmd provided in the setup
Browse files Browse the repository at this point in the history
Related to #89
  • Loading branch information
simrat39 committed Nov 4, 2021
1 parent 4546152 commit 451fc19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rust-tools/standalone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function M.start_standalone_client()
local config = {
root_dir = require("lspconfig.util").path.dirname(vim.api.nvim_buf_get_name(0)),
capabilities = ra_config.options.server.capabilities,
cmd = { "rust-analyzer" },
cmd = ra_config.options.server.cmd or { "rust-analyzer" },
init_options = { detachedFiles = { vim.api.nvim_buf_get_name(0) } },
name = "rust_analyzer-standalone",
on_init = function(client)
Expand Down

0 comments on commit 451fc19

Please sign in to comment.