main
Covers files missed by the first pass (.svelte/.astro components, bare org and profile links, plugin doc headers), plus content that needed rewriting rather than a URL swap: the chezmoi bootstrap script now provisions SSH for git.swaits.com (User git, port 2222) and initialises from Gitea. Link labels were updated to match their new targets.
tiny-checktime.nvim
A tiny plugin for Neovim 0.12+ that checks for externally modified files when focus returns.
Zero config. ~12 lines of Lua.
Features
- Runs
:checktimeon focus gain and terminal events - Pairs with
autoreadto auto-reload changed files - Configurable trigger events
- 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-checktime.nvim",
Configuration
All options are optional. Call setup() only if you want to customize:
require("tiny-checktime").setup({
events = { "FocusGained", "TermClose", "TermLeave" },
})
How it works
When Neovim regains focus (switching back from another app or terminal pane),
it runs :checktime to ask Neovim to check if any buffers were modified on
disk. Combined with vim.opt.autoread = true, changed files reload
automatically.
License
Description
Poke nvim to check for external file changes on refocus
38 KiB
0 Stars
1 Watchers
0 Forks
Languages
Lua
77.7%
Shell
22.3%