add (x|n)man helpers for manpages
https://leancrew.com/all-this/2025/01/return-to-the-planet-of-man-pages/
diff --git a/.gitmodules b/.gitmodules
index 84b8dc97..e73fdc1a 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -155,3 +155,7 @@
path = .local/share/nvim/site/pack/alpha/start/dispatch
url = https://github.com/tpope/vim-dispatch.git
branch = master
+[submodule "mini.align"]
+ path = .local/share/nvim/site/pack/alpha/start/mini-align
+ url = https://github.com/echasnovski/mini.align.git
+ branch = main
diff --git a/.local/share/nvim/site/pack/alpha/start/mini-align b/.local/share/nvim/site/pack/alpha/start/mini-align
new file mode 160000
index 00000000..e715137a
--- /dev/null
+++ b/.local/share/nvim/site/pack/alpha/start/mini-align
@@ -0,0 +1 @@
+Subproject commit e715137aece7d05734403d793b8b6b64486bc812
diff --git a/.zshrc b/.zshrc
index 76368270..49a06969 100644
--- a/.zshrc
+++ b/.zshrc
@@ -160,6 +160,10 @@ tat() {
tmux new-session -As $name
}
+# https://scriptingosx.com/2017/04/on-viewing-man-pages/
+function xman() { open x-man-page://$@ ; }
+function nman() { man $@ | col -bx | nvim -R - }
+
# https://docs.brew.sh/Shell-Completion
if type brew &>/dev/null; then
FPATH=${HOMEBREW_PREFIX:+$HOMEBREW_PREFIX/share/zsh/site-functions:${FPATH}}