feat: update
This commit is contained in:
parent
96c01bf796
commit
13d931ed19
3 changed files with 167 additions and 112 deletions
|
|
@ -116,7 +116,7 @@ end
|
|||
---@param filetype? string
|
||||
function M.create_buffer_with_options(filetype)
|
||||
local buf = vim.api.nvim_create_buf(false, true)
|
||||
vim.api.nvim_set_option_value('bufhidden', 'wipe', { buf = buf })
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue