Merge pull request #32 from brandoncc/set-hidden-in-new-terminal-buffers

Set hidden for harpoon term buffers
This commit is contained in:
ThePrimeagen 2021-03-16 14:20:28 -06:00 committed by GitHub
commit 520f773f5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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