close out other bufs on source buf close

This commit is contained in:
Barrett Ruth 2025-12-31 13:06:25 -06:00
parent d613d3d24a
commit fa45d912b8
2 changed files with 46 additions and 11 deletions

View file

@ -125,6 +125,7 @@ function M.create_buffer_with_options(filetype)
vim.api.nvim_set_option_value('bufhidden', 'hide', { buf = buf })
vim.api.nvim_set_option_value('readonly', true, { buf = buf })
vim.api.nvim_set_option_value('modifiable', false, { buf = buf })
if filetype then
vim.api.nvim_set_option_value('filetype', filetype, { buf = buf })
end