Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lua/pubspec-assist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ local icons = {
---@field error table
---@field name string
---@field type number
---@field ui table

---@table<number, table<number, Package>>
local packages = {}
Expand Down Expand Up @@ -178,7 +179,9 @@ local function get_lnum_lookup(lines)
local key = line:match(".-:")
if key then
local package_name = vim.trim(key:gsub(":", ""))
lookup[package_name] = lnum
if not lookup[package_name] then
lookup[package_name] = lnum
end
end
end
end
Expand Down