Fix neovim theming

This commit is contained in:
Alex Selimov 2026-08-31 21:04:57 -04:00
parent b0de53040c
commit c513825d83

View file

@ -1,5 +1,23 @@
{config, pkgs, ... }:
{
services.darkman = {
enable = true;
settings = {
lat = 33.7490;
lng = -84.3880;
};
darkModeScripts.gsettings = ''
${pkgs.glib}/bin/gsettings \
set org.gnome.desktop.interface color-scheme prefer-dark
'';
lightModeScripts.gsettings = ''
${pkgs.glib}/bin/gsettings \
set org.gnome.desktop.interface color-scheme prefer-light
'';
};
home.file."bin/themer.sh" = {
executable = true;
text = ''
@ -33,12 +51,9 @@
ln -sf "$tmux" $HOME/.config/tmux/theme.conf
makoctl reload
tmux source-file ~/.config/tmux/theme.conf
for dir in "$XDG_RUNTIME_DIR-}" "/tmp" "$HOME/.local/state/nvim"; do
[ -d "$dir" ] || continue
find "$dir" -type s -name 'nvim*' 2>/dev/null | while read -r sock; do
for sock in "$XDG_RUNTIME_DIR"/nvim.*.0; do
timeout 1s nvim --server "$sock" --remote-send "$keys" >/dev/null 2>&1 || true
done
done
}