Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lua/gitlab/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ M.build = function(override)
state.settings.root_path = u.get_root_path()

-- If the user provided a path to the server, don't build it.
if state.settings.server.binary ~= nil then
state.settings.server.binary_provided = true
if state.settings.server.binary_provided then
local binary_exists = vim.loop.fs_stat(state.settings.server.binary)
if binary_exists == nil then
u.notify(
Expand Down
3 changes: 3 additions & 0 deletions lua/gitlab/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ end
---@param args Settings
---@return Settings
M.merge_settings = function(args)
if args.server and args.server.binary ~= nil then
M.settings.server.binary_provided = true
end
M.settings = u.merge(M.settings, args)
return M.settings
end
Expand Down
Loading