mirror of https://github.com/folke/lazy.nvim.git
fix(float): disable swapfile for files shown in Float
This commit is contained in:
parent
33c447b96e
commit
3769461194
|
@ -104,6 +104,8 @@ function M:mount()
|
||||||
self.buf = self.buf
|
self.buf = self.buf
|
||||||
elseif self.opts.file then
|
elseif self.opts.file then
|
||||||
self.buf = vim.fn.bufadd(self.opts.file)
|
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.fn.bufload(self.buf)
|
||||||
vim.bo[self.buf].modifiable = false
|
vim.bo[self.buf].modifiable = false
|
||||||
elseif self.opts.buf then
|
elseif self.opts.buf then
|
||||||
|
|
Loading…
Reference in New Issue