Skip to content

Commit 7ccea9f

Browse files
committed
refactor(nvim): make sure the correct executable is used
1 parent 8f1ce97 commit 7ccea9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/vectorcode/config.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ local config = {
3939
}
4040

4141
local setup_config = vim.deepcopy(config, true)
42-
local vectorcode_cli_cmd = setup_config.cli_cmds.vectorcode
4342

4443
---@return vim.lsp.ClientConfig
4544
local lsp_configs = function()
@@ -78,7 +77,7 @@ local notify_opts = { title = "VectorCode" }
7877
---@param opts {notify:boolean}?
7978
local has_cli = function(opts)
8079
opts = opts or { notify = false }
81-
local ok = vim.fn.executable(vectorcode_cli_cmd) == 1
80+
local ok = vim.fn.executable(setup_config.cli_cmds.vectorcode) == 1
8281
if not ok and opts.notify then
8382
vim.notify("VectorCode CLI is not executable!", vim.log.levels.ERROR, notify_opts)
8483
end

0 commit comments

Comments
 (0)