-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workspace folders #197
base: master
Are you sure you want to change the base?
Workspace folders #197
Conversation
local config = config.get_config().workspace_folders | ||
local result = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[stylua] reported by reviewdog 🐶
local config = config.get_config().workspace_folders | |
local result = {} | |
local config = config.get_config().workspace_folders | |
local result = {} |
if config.lsp and #utils.buf_get_clients() > 0 then | ||
vim.list_extend(result, utils.set(lsp.buf.list_workspace_folders())) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[stylua] reported by reviewdog 🐶
if config.lsp and #utils.buf_get_clients() > 0 then | |
vim.list_extend(result, utils.set(lsp.buf.list_workspace_folders())) | |
end | |
if config.lsp and #utils.buf_get_clients() > 0 then | |
vim.list_extend(result, utils.set(lsp.buf.list_workspace_folders())) | |
end |
vim.list_extend(result, utils.set(lsp.buf.list_workspace_folders())) | ||
end | ||
|
||
if config.paths then vim.list_extend(result, config.paths) end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[stylua] reported by reviewdog 🐶
if config.paths then vim.list_extend(result, config.paths) end | |
if config.paths then vim.list_extend(result, config.paths) end |
|
||
if config.paths then vim.list_extend(result, config.paths) end | ||
|
||
if config.get_paths then vim.list_extend(result, config.get_paths() or {}) end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[stylua] reported by reviewdog 🐶
if config.get_paths then vim.list_extend(result, config.get_paths() or {}) end | |
if config.get_paths then vim.list_extend(result, config.get_paths() or {}) end |
|
||
if config.get_paths then vim.list_extend(result, config.get_paths() or {}) end | ||
|
||
return result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[stylua] reported by reviewdog 🐶
return result | |
return result |
end | ||
|
||
function M.update() | ||
tabnine_binary:request({ Workspace = { root_paths = workspace_folders() } }, function() end) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[stylua] reported by reviewdog 🐶
tabnine_binary:request({ Workspace = { root_paths = workspace_folders() } }, function() end) | |
tabnine_binary:request({ Workspace = { root_paths = workspace_folders() } }, function() end) |
end | ||
end) | ||
) | ||
local timer = uv.new_timer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[stylua] reported by reviewdog 🐶
local timer = uv.new_timer() | |
local timer = uv.new_timer() |
) | ||
local timer = uv.new_timer() | ||
|
||
timer:start(0, 30000, vim.schedule_wrap(M.update)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[stylua] reported by reviewdog 🐶
timer:start(0, 30000, vim.schedule_wrap(M.update)) | |
timer:start(0, 30000, vim.schedule_wrap(M.update)) |
No description provided.