Commit graph

299 commits

Author SHA1 Message Date
Jonny Barnes
865b52c2e5
Add fzf-lua for project navigation
Wraps the fzf binary already installed via brew, alongside rg and fd,
so it needs no plugin dependencies - unlike telescope, which would
also pull in plenary. Picks up nvim-web-devicons for file icons, which
is the first thing actually using that plugin.

Maps live under <leader>f: files, live grep, buffers, grep the word
under the cursor, and help tags. The intent is to stop treating netrw
as the way into a project and switch to jumping by name, leaving
buffers open and bouncing between them, rather than quitting out of
nvim to change file.

Netrw is untouched and still on :Ex for browsing an unfamiliar tree.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 18:39:48 +01:00
Jonny Barnes
e8e9bf0663
Fix which-key not seeing gitsigns maps, add diagnostic maps
The gitsigns keymaps were defined in on_attach, so they were
buffer-local and created asynchronously - gitsigns shells out to git
before attaching. which-key had already built its keymap tree for the
buffer by then, and it only invalidates that cache on BufReadPost,
BufNew and LspAttach, so maps added afterwards stayed invisible.
Buf:get() returns cached mode state unless explicitly passed `update`,
which is why re-entering the buffer didn't help either.

Mapping globally instead means the maps exist before which-key builds
any tree. The gitsigns API no-ops in buffers it hasn't attached to
(checked stage/reset/preview/blame/nav in a non-git directory), so the
only change is that the maps now exist everywhere rather than just in
git-tracked buffers.

Also puts the diagnostic float and quickfix list on <leader>d. Nvim
already binds <C-W>d and ]d/[d for these, so this is a rebinding for
discoverability rather than new capability.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 17:27:37 +01:00
Jonny Barnes
5d0688c827
Add which-key and nvim-web-devicons, tidy brew casks
which-key needs an icon backend and treats mini.icons and
nvim-web-devicons as equally viable optional deps, so devicons covers
it. Both are pure APIs with no visible effect on their own; devicons
self-initialises on require, so no setup() call.

Group labels for the <leader>h and <leader>t prefixes live in the
which-key config rather than next to the gitsigns maps they describe,
keeping which-key's config in one place. Worth moving if more plugins
start contributing prefixes.

The Nerd Font the glyphs need was installed by hand on this machine
but missing from brew.sh, so a fresh bootstrap would have rendered
every icon as tofu. Records it as a cask alongside the ghostty
font-family setting that already expects it.

Also drops the claude-code cask, which was never actually installed
here: brew tracks stable releases, and we want newer ones, so it comes
from Claude's own installer instead. Left a comment so it doesn't get
re-added.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 14:26:59 +01:00
Jonny Barnes
509b16f543
Add gitsigns via vim.pack, track the pack lockfile
Restores plugin management after the v0.12 config rewrite dropped the
earlier `vim.pack.add` calls. Plugins now live in `config/plugins/`,
one file per plugin, so adding the next is a single require.

Sets `<leader>` to Space for the gitsigns hunk mappings, and pins
'signcolumn' open so git and diagnostic signs don't shift text.

The lockfile moves into the repo and is symlinked by bootstrap.sh, as
the vim.pack docs recommend, giving reproducible plugin revisions
across machines and a rollback path via git. vim.pack writes it with a
truncating open, so it follows the symlink rather than replacing it.

Drops the orphaned nvim-tree entry, unreferenced since the rewrite.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 13:57:02 +01:00
Jonny Barnes
e1382f5c1f
Enable tmux focus-events
Claude Code CLI warns when focus-events is off. The option was already
present in the config but commented out from when it was first added.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 12:00:45 +01:00
Jonny Barnes
837efb3cca
Merge remote-tracking branch 'github/main' 2026-08-08 11:55:34 +01:00
Jonny Barnes
c7236f5a12
Switch Claude Code statusline to isaacaudet variant, show 7d usage
Add statusline.isaacaudet.sh and point the bootstrap symlink at it,
keeping the burnrate and original variants alongside.

The script already had a 7d rate-limit bar but gated it behind the
`full` width tier, so it only appeared at >=150 columns. Ungate it so it
renders wherever the 5h bar does, mirroring it exactly. The `full`-only
extra_usage bar is unchanged.

To pay for the ~14 columns that costs, the reset timestamps are now
`full`-only (the 5h one previously also showed at `wide`), and the model
name is shortened at `split` as well as `narrow` - with the 7d bar added
a `split` line came to 82 visible columns against a 76-column budget and
wrapped.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 11:54:05 +01:00
Jonny Barnes
1280f864ae
Fix two brew install lines that error out
`brew install gnu-sed --with-default-names` fails with "invalid option"
- Homebrew dropped per-formula option flags years ago. The flag existed
to install GNU sed as `sed` rather than `gsed`, which is now the
opposite of what we want, so drop it and note why in the comment.

`oven-sh/bun/bun` no longer resolves; bun has since moved into
homebrew-core, so install it by its plain name. This line has been
failing on every bootstrap, which is why bun was never actually
installed.

Neither aborted the script (there is no `set -e`), they just failed
their own install and carried on. Verified all 47 formulae and 6 casks
now resolve and none are deprecated or disabled.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 11:53:54 +01:00
Jonny Barnes
9930bbc009
Stop shadowing BSD coreutils with GNU versions on PATH
Prepending the coreutils/findutils/gnu-sed/grep gnubin dirs put GNU
stat, date, sed, grep and find on the PATH under their un-prefixed
names, which silently breaks any script written against the macOS
versions. Portable scripts typically probe BSD-first and fall back to
GNU, so the BSD probe succeeds against a GNU binary that means something
else entirely and the fallback never fires.

The Claude Code statusline was a live example: it reads a cache file's
mtime with `stat -f %m`, which GNU stat parses as a *filesystem* format
string. That emits a multi-line blob, the following arithmetic hits a
syntax error, and because an arithmetic error aborts the shell the
enclosing function returned early - so the git branch segment silently
vanished on every warm-cache render. Its `date -j -r` reset timestamps
failed the same way.

Homebrew installs the g-prefixed variants into $HOMEBREW_PREFIX/bin
regardless, so gstat / gdate / gsed / ggrep / gfind still give GNU
behaviour on demand. Note BSD sed needs `sed -i ''` rather than `sed -i`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 11:53:40 +01:00
43e5d5ed85
Only load fnm sheldon plugin on macOS
On the server, fnm isn't installed since system nodejs is used instead.
The zsh-fnm plugin's own fallback silently curl-installs fnm when missing,
and its --use-on-cd hook then prompts on every cd since no default version
is fnm-managed there. Gate the plugin to Darwin only.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3jcSVn51hiw58f7jPWrpN
2026-08-04 22:30:41 +01:00
Jonny Barnes
8cc69aa6f3
Fix Opus statusline hue rendering as black in light theme
Hue 226 (#ffff00) has a contrast ratio of 1.05 against the tangere-light
background (#fdfdfa), below the minimum-contrast = 1.1 set in the ghostty
config. Ghostty then substitutes the foreground for whichever of black or
white has more contrast, so against a near-white background that letter of
the model name rendered black.

Swap 226 for 184 (#d7d700, ratio 1.51 light / 9.60 dark) in the Opus ramp
and the unknown-model fallback, the only two palettes that used it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 17:35:33 +01:00
Jonny Barnes
644c52d4b4
Switch Claude Code statusline to burnrate variant
Keep the previous statusline as statusline.original.sh and add
statusline.burnrate.sh from Gui-Gou/claude-statusline-burnrate, which
shows weekly/5h plan usage and a sustainable burn rate.

bootstrap.sh now links the burnrate script unconditionally - the old
`test -L` guard would have left an existing symlink pointing at the
previous script. jq is a hard dependency of the new script, so add it
to brew.sh.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-03 14:40:40 +01:00
Jonny Barnes
f5b8624814
Improve zsh performance 2026-06-26 14:47:32 +01:00
b441c47098
Make tmux work with claude installed via claude.com install.sh script 2026-06-10 15:26:01 +01:00
a69eb78f95
Improve prompt loading 2026-06-06 18:10:35 +01:00
Jonny Barnes
d3b54ea921
Updated neovim config for v0.12 2026-05-31 20:33:23 +01:00
Jonny Barnes
dec884da2f
Tidy up brew install script 2026-04-20 16:11:07 +01:00
2f3e3393d8
Update cp-torrent command 2026-04-12 11:24:18 +01:00
9028f0fe67
Fox ghostty config 2026-04-02 10:59:23 +01:00
Jonny Barnes
7b40ed544c
Trying out a new font 2026-04-01 21:18:23 +01:00
Jonny Barnes
f9e4c65001
Add claude statusline to my dotfiles 2026-03-28 16:51:14 +00:00
Jonny Barnes
2d18961ebc
Stay in tmux of there are other windows when quitting 2026-03-28 16:50:34 +00:00
Jonny Barnes
f258813771
Allow tmux to let links be clickable 2026-03-22 18:00:10 +00:00
Jonny Barnes
c8ea7cc820
Add Obsidian CLI 2026-02-28 21:13:48 +00:00
Jonny Barnes
dd0d06fa1d
Add docker commands from user install 2026-02-28 21:11:11 +00:00
6d645999f2
Add phpactor support to neovim with default settings 2026-02-15 17:03:34 +00:00
34458b17f5
No need for alt key changes 2026-02-15 17:01:41 +00:00
ffd895b1fe
Use pack.add for plugns
Needs neovim >= 0.12
2026-02-13 22:25:08 +00:00
5ad13bcd09
Initial tidy up of neovim config 2026-02-13 21:06:00 +00:00
98bd888775
Tweak ghostty config 2026-02-13 16:11:02 +00:00
6c23a03412
Improvements to lazygit/tmux/ghossty configs 2026-01-30 14:42:51 +00:00
ab0b63bc87
Update ghostty config 2026-01-19 18:27:04 +00:00
f108939b68
Improve tmux config
Mainly adds a better styling to the status bar
2026-01-18 17:27:15 +00:00
b3a2238d30
Removing vim configuration 2026-01-15 18:26:29 +00:00
bca7ed3fe9
Claude Code added native shift+enter support, no need for terminal hack 2026-01-09 16:59:30 +00:00
249d84fe79
Tweak ghostty config 2026-01-09 16:55:53 +00:00
d7bc6bb72f
Add location of rainfrog config 2026-01-09 16:50:31 +00:00
ab3e6950c7
Tweak cursor colour in tangere theme 2025-10-26 16:59:30 +00:00
88a8dd1698
Update ghostty config to use custom Tangere theme 2025-10-26 11:18:04 +00:00
e632a40580
Fix fnm to look for parent nvmrc files 2025-10-13 20:14:34 +01:00
fe2213fe91
Add yay+fzf alias 2025-10-10 13:15:08 +01:00
cc042d5bd7
Ghostty changed its theme names in v1.2.0 2025-09-16 16:05:45 +01:00
aaf220e382
Various improvemnts mainly around sheldon usage 2025-08-10 11:37:13 +01:00
b642f28fd3
Try and get alt+[key] shortcuts working 2025-08-02 08:22:15 +01:00
caade0cd29
Load zsh syntax highlighting later 2025-07-23 18:36:59 +01:00
40075d1862
Merge remote-tracking branch 'forge/main' 2025-07-15 21:52:37 +01:00
8473e679a6
Add plugin for ssh tab completion 2025-07-15 11:40:19 +01:00
4e8503003b
Auto-escape pasted URLs 2025-05-23 19:06:18 +01:00
01cfce56d0
Share zsh history amongst shells 2025-03-16 16:32:04 +00:00
761378d9b8
Add a script to copy torrent files 2025-03-16 16:13:47 +00:00