diff --git a/lua/lazy/view/float.lua b/lua/lazy/view/float.lua index f69108e..0a21b38 100644 --- a/lua/lazy/view/float.lua +++ b/lua/lazy/view/float.lua @@ -104,6 +104,8 @@ function M:mount() self.buf = self.buf elseif self.opts.file then self.buf = vim.fn.bufadd(self.opts.file) + vim.bo[self.buf].readonly = true + vim.bo[self.buf].swapfile = false vim.fn.bufload(self.buf) vim.bo[self.buf].modifiable = false elseif self.opts.buf then