Skip to content

Commit

Permalink
refactor: rename package -> pkg to avoid conflict with builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jan 14, 2024
1 parent 9b12e2e commit d3f3226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/haskell-tools/lsp/hover.lua
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ function hover.on_hover(_, result, ctx, config)
end)
end
else -- Display Hoogle search instead
local package = location:match('‘(.+)’')
local search_term = package and package .. '.' .. cword or cword
local pkg = location:match('‘(.+)’')
local search_term = pkg and pkg .. '.' .. cword or cword
table.insert(actions, 1, string.format('%d. Hoogle search: `%s`', #actions + 1, search_term))
table.insert(_state.commands, function()
log.debug { 'Hover: Hoogle search for definition', search_term }
Expand Down

0 comments on commit d3f3226

Please sign in to comment.