We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8851644 commit 9a66765Copy full SHA for 9a66765
lua/copilot/client.lua
@@ -137,6 +137,14 @@ M.merge_server_opts = function(params)
137
end
138
139
M.setup = function(params)
140
+ if vim.fn.executable(params.copilot_node_command) ~= 1 then
141
+ vim.notify(
142
+ string.format("[copilot] copilot_node_command(%s) is not executable", params.copilot_node_command),
143
+ vim.log.levels.ERROR
144
+ )
145
+ return
146
+ end
147
+
148
M.config = M.merge_server_opts(params)
149
150
local augroup = vim.api.nvim_create_augroup("copilot.client", { clear = true })
0 commit comments