forked from sourcegraph/sg.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotify.lua
More file actions
29 lines (20 loc) · 794 Bytes
/
Copy pathnotify.lua
File metadata and controls
29 lines (20 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
local M = {}
M.NO_AUTH = function()
vim.notify_once "[sg-cody] Unable to find valid authentication strategy. See `:help sg.auth` and then restart nvim"
return false
end
M.NO_BUILD = function()
vim.notify_once "[sg-cody] Unable to find cody binaries. You may not have run `:SourcegraphDownloadBinaries` or `:SourcegraphBuild` and then restart nvim"
return false
end
M.INVALID_AUTH = function()
vim.notify_once "[sg-cody] Invalid authentication. See `:help sg.auth`"
end
M.CODY_DISABLED = function()
vim.notify_once "[sg-cody] Cody is disabled for your current instance. Please talk to site-admins or change authentication"
end
M.INVALID_NODE = function(reason)
vim.notify_once(string.format("[sg-cody] Invalid node configuration: '%s'", reason))
return nil
end
return M