chore(fmt): stylua
This commit is contained in:
@@ -293,8 +293,10 @@ function LivePreview:show()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if not vim.api.nvim_win_is_valid(self.s.code.win)
|
if
|
||||||
or (self.codewin and not vim.api.nvim_win_is_valid(self.codewin)) then
|
not vim.api.nvim_win_is_valid(self.s.code.win)
|
||||||
|
or (self.codewin and not vim.api.nvim_win_is_valid(self.codewin))
|
||||||
|
then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ function Sidebar:setup_attached_buffer_autocmd()
|
|||||||
|
|
||||||
if cfg.o.outline_items.highlight_hovered_item or cfg.o.symbol_folding.auto_unfold_hover then
|
if cfg.o.outline_items.highlight_hovered_item or cfg.o.symbol_folding.auto_unfold_hover then
|
||||||
if utils.str_or_nonempty_table(events.follow) then
|
if utils.str_or_nonempty_table(events.follow) then
|
||||||
self.augroup = vim.api.nvim_create_augroup("outline_"..self.id, { clear = true })
|
self.augroup = vim.api.nvim_create_augroup('outline_' .. self.id, { clear = true })
|
||||||
vim.api.nvim_create_autocmd(events.follow, {
|
vim.api.nvim_create_autocmd(events.follow, {
|
||||||
group = self.augroup,
|
group = self.augroup,
|
||||||
buffer = code_buf,
|
buffer = code_buf,
|
||||||
|
|||||||
Reference in New Issue
Block a user