close out other bufs on source buf close
This commit is contained in:
parent
d613d3d24a
commit
fa45d912b8
2 changed files with 46 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue