Skip to content

Commit b2b0586

Browse files
committed
fix: don't eagerly load current scope on setup
1 parent b381b69 commit b2b0586

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

lua/grapple.lua

-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ function Grapple.setup(opts)
88
if err then
99
return vim.notify(err, vim.log.levels.ERROR)
1010
end
11-
12-
local err = app:load_current_scope()
13-
if err then
14-
return vim.notify(err, vim.log.levels.ERROR)
15-
end
1611
end
1712

1813
---@class grapple.options

lua/grapple/app.lua

-10
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,6 @@ function App:delete_scope(scope_name)
8484
return self.scope_manager:delete(scope_name)
8585
end
8686

87-
---@return string? error
88-
function App:load_current_scope()
89-
local scope, err = self:current_scope()
90-
if not scope then
91-
return err
92-
end
93-
94-
self.tag_manager:load(scope.id)
95-
end
96-
9787
---@return grapple.resolved_scope | nil, string? error
9888
function App:current_scope()
9989
return self.scope_manager:get_resolved(self.settings.scope)

0 commit comments

Comments
 (0)