mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
refactor: Call UI_CREATE after setting buffer contents
This commit is contained in:
parent
2d3abde3c4
commit
8124e73eed
@ -118,11 +118,6 @@ function HarpoonUI:_create_window(toggle_opts)
|
|||||||
win = win_id,
|
win = win_id,
|
||||||
})
|
})
|
||||||
|
|
||||||
Extensions.extensions:emit(Extensions.event_names.UI_CREATE, {
|
|
||||||
win_id = win_id,
|
|
||||||
bufnr = bufnr,
|
|
||||||
})
|
|
||||||
|
|
||||||
return win_id, bufnr
|
return win_id, bufnr
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -148,6 +143,11 @@ function HarpoonUI:toggle_quick_menu(list, opts)
|
|||||||
|
|
||||||
local contents = self.active_list:display()
|
local contents = self.active_list:display()
|
||||||
vim.api.nvim_buf_set_lines(self.bufnr, 0, -1, false, contents)
|
vim.api.nvim_buf_set_lines(self.bufnr, 0, -1, false, contents)
|
||||||
|
|
||||||
|
Extensions.extensions:emit(Extensions.event_names.UI_CREATE, {
|
||||||
|
win_id = win_id,
|
||||||
|
bufnr = bufnr,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param options? any
|
---@param options? any
|
||||||
|
Loading…
x
Reference in New Issue
Block a user