Fix winfixbuf compatibility
This commit is contained in:
@@ -53,10 +53,12 @@ function View:setup_view(split_command)
|
|||||||
utils.win_set_option(self.win, 'winhl', cfg.o.outline_window.winhl)
|
utils.win_set_option(self.win, 'winhl', cfg.o.outline_window.winhl)
|
||||||
utils.win_set_option(self.win, 'linebreak', true) -- only has effect when wrap=true
|
utils.win_set_option(self.win, 'linebreak', true) -- only has effect when wrap=true
|
||||||
utils.win_set_option(self.win, 'breakindent', true) -- only has effect when wrap=true
|
utils.win_set_option(self.win, 'breakindent', true) -- only has effect when wrap=true
|
||||||
-- this setting pins the window to the buffer not allowing to open any other buffers
|
-- this setting pins the window to the buffer not allowing to open any other
|
||||||
-- which helps to prevent situation when external pickers (e.g. telescope) opens file
|
-- buffers, which helps to prevent situation when external pickers (e.g.
|
||||||
-- in the outline window sidebar
|
-- telescope) opens file in the outline window sidebar.
|
||||||
|
if vim.fn.exists('&winfixbuf') == 1 then
|
||||||
utils.win_set_option(self.win, 'winfixbuf', true)
|
utils.win_set_option(self.win, 'winfixbuf', true)
|
||||||
|
end
|
||||||
-- Would be nice to use guides.markers.vertical as part of showbreak to keep
|
-- Would be nice to use guides.markers.vertical as part of showbreak to keep
|
||||||
-- continuity of the tree UI, but there's currently no way to style the
|
-- continuity of the tree UI, but there's currently no way to style the
|
||||||
-- color, apart from globally overriding hl-NonText, which will potentially
|
-- color, apart from globally overriding hl-NonText, which will potentially
|
||||||
|
|||||||
Reference in New Issue
Block a user