Skip to content

Commit

Permalink
fix: use provided app instead of global app in scope content
Browse files Browse the repository at this point in the history
  • Loading branch information
cbochs committed Apr 25, 2024
1 parent 22d0272 commit 494b186
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lua/grapple/scope_content.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ end
---@param index integer
---@return grapple.window.entry
function ScopeContent:create_entry(entity, index)
local App = require("grapple.app")
local app = App.get()

local scope = entity.scope

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

if app.settings.status and entity.current then
if self.app.settings.status and entity.current then
sign_highlight = "GrappleCurrent"
name_group = "GrappleCurrent"
end
Expand All @@ -143,7 +140,7 @@ function ScopeContent:create_entry(entity, index)

---@type grapple.vim.mark
local sign_mark
local quick_select = app.settings:quick_select()[index]
local quick_select = self.app.settings:quick_select()[index]
if quick_select then
sign_mark = {
sign_text = string.format("%s", quick_select),
Expand Down

0 comments on commit 494b186

Please sign in to comment.