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

@@ -27,7 +27,7 @@ function M.supports_buffer(bufnr, config)
end
end
end
return ft == "markdown"
return ft == 'markdown'
end
-- Parses markdown files and returns a table of SymbolInformation[] which is
@@ -47,8 +47,8 @@ function M.handle_markdown()
goto nextline
end
local next_value = lines[line+1]
local is_emtpy_line = #value:gsub("^%s*(.-)%s*$", "%1") == 0
local next_value = lines[line + 1]
local is_emtpy_line = #value:gsub('^%s*(.-)%s*$', '%1') == 0
local header, title = string.match(value, '^(#+)%s+(.+)$')
if not header and next_value and not is_emtpy_line then