We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1ce97 commit 7ccea9fCopy full SHA for 7ccea9f
lua/vectorcode/config.lua
@@ -39,7 +39,6 @@ local config = {
39
}
40
41
local setup_config = vim.deepcopy(config, true)
42
-local vectorcode_cli_cmd = setup_config.cli_cmds.vectorcode
43
44
---@return vim.lsp.ClientConfig
45
local lsp_configs = function()
@@ -78,7 +77,7 @@ local notify_opts = { title = "VectorCode" }
78
77
---@param opts {notify:boolean}?
79
local has_cli = function(opts)
80
opts = opts or { notify = false }
81
- local ok = vim.fn.executable(vectorcode_cli_cmd) == 1
+ local ok = vim.fn.executable(setup_config.cli_cmds.vectorcode) == 1
82
if not ok and opts.notify then
83
vim.notify("VectorCode CLI is not executable!", vim.log.levels.ERROR, notify_opts)
84
end
0 commit comments