mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
Set hidden for harpoon term buffers
This commit is contained in:
parent
af09f2c99b
commit
dcf2c80314
@ -16,6 +16,10 @@ function create_terminal()
|
||||
return nil
|
||||
end
|
||||
|
||||
-- Make sure the term buffer has "hidden" set so it doesn't get thrown
|
||||
-- away and cause an error
|
||||
vim.api.nvim_buf_set_option(bufh, 'bufhidden', 'hide')
|
||||
|
||||
-- Resets the buffer back to the old one
|
||||
vim.api.nvim_set_current_buf(current_id)
|
||||
return buf_id, term_id
|
||||
|
Loading…
x
Reference in New Issue
Block a user