nvim: wrapper script for persistent+remote control

This commit is contained in:
Daniel Lundin 2025-01-02 10:55:43 +01:00
parent 9ee84b89e6
commit 311cd9042e
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
3 changed files with 17 additions and 2 deletions
home/common

View file

@ -53,7 +53,7 @@
description = "Open a file in already running nvim";
argumentNames = [ "file" ];
body = ''
nvim --server "$XDG_RUNTIME_DIR/nvim-persistent.sock" --remote (readlink -f "$file")
nvim-remote --remote (readlink -f "$file")
'';
};