Skip to content

Commit 494b186

Browse files
committed
fix: use provided app instead of global app in scope content
1 parent 22d0272 commit 494b186

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lua/grapple/scope_content.lua

+2-5
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ end
109109
---@param index integer
110110
---@return grapple.window.entry
111111
function ScopeContent:create_entry(entity, index)
112-
local App = require("grapple.app")
113-
local app = App.get()
114-
115112
local scope = entity.scope
116113

117114
-- A string representation of the index
@@ -124,7 +121,7 @@ function ScopeContent:create_entry(entity, index)
124121
local name_group = "GrappleBold"
125122
local sign_highlight
126123

127-
if app.settings.status and entity.current then
124+
if self.app.settings.status and entity.current then
128125
sign_highlight = "GrappleCurrent"
129126
name_group = "GrappleCurrent"
130127
end
@@ -143,7 +140,7 @@ function ScopeContent:create_entry(entity, index)
143140

144141
---@type grapple.vim.mark
145142
local sign_mark
146-
local quick_select = app.settings:quick_select()[index]
143+
local quick_select = self.app.settings:quick_select()[index]
147144
if quick_select then
148145
sign_mark = {
149146
sign_text = string.format("%s", quick_select),

0 commit comments

Comments
 (0)