Add vim B(uf)H(idden)K(eep) command

This commit is contained in:
Talia 2024-06-20 14:53:06 +02:00
parent 5d10b4ecec
commit ac3e0d50e2
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

View file

@ -2,6 +2,10 @@ vim.api.nvim_create_user_command("BHD", function()
vim.bo.bufhidden = "delete" vim.bo.bufhidden = "delete"
end, {}) end, {})
vim.api.nvim_create_user_command("BHK", function()
vim.bo.bufhidden = nil
end, {})
vim.g.ephemeral_buffers = false vim.g.ephemeral_buffers = false
vim.api.nvim_create_autocmd("BufAdd", { vim.api.nvim_create_autocmd("BufAdd", {