1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00

docs/man: minor cleanup

- Move lua filter to separate file
- Use a subshell to write `nixvim-header.5`
- Use bash function to avoid repetition
This commit is contained in:
Matt Sturgeon 2025-05-15 17:06:39 +01:00
parent 2a4719f275
commit 61c44d7a7f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 32 additions and 29 deletions

15
docs/man/filter.lua Normal file
View file

@ -0,0 +1,15 @@
local text = pandoc.text
function Header(el)
if el.level == 1 then
return el:walk({
Str = function(el)
return pandoc.Str(text.upper(el.text))
end,
})
end
end
function Link(el)
return el.content
end