swaits 2bb1cc5dcd
CI / lint (push) Canceled after 0s
CI / test (push) Canceled after 0s
chore: repoint remaining links at git.swaits.com
Rewrites lingering github.com / *.sr.ht references to this Gitea instance,
translating GitHub and Sourcehut URL shapes to Gitea's (/blob/<ref>/ and
sr.ht /tree/<ref>/item/ -> /src/branch/<ref>/, /tree/<tag> -> /src/tag/<tag>,
/actions/workflows/X -> /actions?workflow=X, /edit/ -> /_edit/).

Left pointing at the old hosts on purpose: pull-request links (PRs were not
migrated), forks that were never migrated, and GitHub-only surfaces Gitea
lacks. OpenPGP identity proofs are untouched by design.
2026-08-31 18:32:31 -06:00
2026-04-09 17:30:26 -06:00
2026-04-09 17:30:26 -06:00
2026-04-09 17:30:26 -06:00
2026-04-09 17:30:26 -06:00
2026-04-09 17:30:26 -06:00
2026-04-09 17:30:26 -06:00
2026-04-09 17:30:26 -06:00
2026-04-09 17:30:26 -06:00
2026-04-09 17:30:26 -06:00
2026-04-09 17:30:26 -06:00
2026-04-09 17:30:26 -06:00

tiny-mkpath.nvim

A tiny plugin for Neovim 0.12+ that automatically creates parent directories when saving a file.

Zero config. ~12 lines of Lua.

Features

  • Auto-creates missing parent directories on save
  • Skips remote URLs (e.g. scp://, ftp://)
  • Works out of the box — no setup call required

Requirements

  • Neovim >= 0.12

Installation

Add to your vim.pack.add() call:

"https://git.swaits.com/swaits/tiny-mkpath.nvim",

How it works

On BufWritePre, if the parent directory doesn't exist, it creates it with mkdir -p semantics. So :w brand/new/path/file.lua just works.

License

MIT

S
Description
Auto-create parent dirs on save
Readme MIT
37 KiB
0 Stars 1 Watchers 0 Forks
Languages
Lua 74.4%
Shell 25.6%