Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Workspace folders #197

wants to merge 2 commits into from

Conversation

amirbilu
Copy link
Contributor

@amirbilu amirbilu commented Feb 3, 2025

No description provided.

Comment on lines +10 to +11
local config = config.get_config().workspace_folders
local result = {}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[stylua] reported by reviewdog 🐶

Suggested change
local config = config.get_config().workspace_folders
local result = {}
local config = config.get_config().workspace_folders
local result = {}

Comment on lines +13 to +15
if config.lsp and #utils.buf_get_clients() > 0 then
vim.list_extend(result, utils.set(lsp.buf.list_workspace_folders()))
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[stylua] reported by reviewdog 🐶

Suggested change
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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[stylua] reported by reviewdog 🐶

Suggested change
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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[stylua] reported by reviewdog 🐶

Suggested change
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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[stylua] reported by reviewdog 🐶

Suggested change
return result
return result

end

function M.update()
tabnine_binary:request({ Workspace = { root_paths = workspace_folders() } }, function() end)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[stylua] reported by reviewdog 🐶

Suggested change
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()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[stylua] reported by reviewdog 🐶

Suggested change
local timer = uv.new_timer()
local timer = uv.new_timer()

)
local timer = uv.new_timer()

timer:start(0, 30000, vim.schedule_wrap(M.update))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[stylua] reported by reviewdog 🐶

Suggested change
timer:start(0, 30000, vim.schedule_wrap(M.update))
timer:start(0, 30000, vim.schedule_wrap(M.update))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant