Skip to content

Commit 0fd2d5a

Browse files
authored
Merge pull request #86 from sebajun9/main
Fix incline floating windows being treated as regular buffers
2 parents 2704069 + 1df46f9 commit 0fd2d5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lua/incline/winline.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ function Winline:buf()
5454
return self._buf
5555
end
5656
self._buf = a.nvim_create_buf(false, true)
57+
5758
a.nvim_buf_set_option(self._buf, 'filetype', 'incline')
59+
a.nvim_buf_set_option(self._buf, 'buftype', 'nofile')
60+
a.nvim_buf_set_option(self._buf, 'bufhidden', 'wipe')
61+
a.nvim_buf_set_option(self._buf, 'buflisted', false)
62+
a.nvim_buf_set_option(self._buf, 'swapfile', false)
63+
5864
return self._buf
5965
end
6066

0 commit comments

Comments
 (0)