1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-23 04:11:33 +08:00

fix(nvim-plug): make sure buf modifiable is true

This commit is contained in:
Eric Wong 2025-02-15 16:01:33 +08:00
parent 41bd11ad55
commit db0f189035
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -98,6 +98,7 @@ M.open = function()
})
end
if vim.api.nvim_buf_is_valid(bufnr) then
vim.api.nvim_set_option_value('modifiable', true, { buf = bufnr})
vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, build_context())
vim.api.nvim_set_option_value('modifiable', false, { buf = bufnr})
end