chore(fmt): format using stylua

Also fixed something in .stylua.toml that may cause stylua to fail, by
the way
This commit is contained in:
27Onion Nebell
2025-04-14 22:39:13 +08:00
parent fc526beb6f
commit 7d2387dc12
7 changed files with 23 additions and 12 deletions

View File

@@ -69,7 +69,13 @@ function Float:open(lines, hl, title, indent)
self.ns = vim.api.nvim_create_namespace('OutlineHelp')
for _, h in ipairs(hl) do
if _G._outline_nvim_has[11] then
vim.hl.range(self.bufnr, self.ns, h.name, { h.line, h.from + indent }, { h.line, (h.to ~= -1 and h.to + indent) or -1 })
vim.hl.range(
self.bufnr,
self.ns,
h.name,
{ h.line, h.from + indent },
{ h.line, (h.to ~= -1 and h.to + indent) or -1 }
)
else
---@diagnostic disable-next-line:deprecated
vim.api.nvim_buf_add_highlight(