mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
feat(ui): delete quick_menu buffer on hidden
This commit is contained in:
parent
5e3b5e39f7
commit
c413edb1e8
@ -1,4 +1,3 @@
|
||||
local Path = require('plenary.path')
|
||||
local float = require('plenary.window.float')
|
||||
local Marked = require('harpoon.mark')
|
||||
|
||||
@ -68,6 +67,7 @@ M.toggle_quick_menu = function()
|
||||
vim.api.nvim_buf_set_lines(bufh, 0, #contents, false, contents)
|
||||
vim.api.nvim_buf_set_option(bufh, "filetype", "harpoon")
|
||||
vim.api.nvim_buf_set_option(bufh, "buftype", "acwrite")
|
||||
vim.api.nvim_buf_set_option(bufh, "bufhidden", "delete")
|
||||
vim.cmd(string.format("autocmd BufWriteCmd <buffer=%s> :lua require('harpoon.ui').on_menu_save()", bufh))
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user