Skip to content

Commit

Permalink
fix(readme): custom scope needs one extra curly brackets to wrap it (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kucaiyi authored May 18, 2024
1 parent 493f174 commit 924807a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -794,14 +794,16 @@ require("grapple").setup({
scope = "custom",

scopes = {
name = "custom",
fallback = "cwd",
cache = { event = "DirChanged" },
resolver = function()
local path = vim.env.HOME
local id = path
return id, path
end
{
name = "custom",
fallback = "cwd",
cache = { event = "DirChanged" },
resolver = function()
local path = vim.env.HOME
local id = path
return id, path
end
}
}
})

Expand Down

0 comments on commit 924807a

Please sign in to comment.