Skip to content

Commit

Permalink
nvim: Fix nvim-server startup after crash
Browse files Browse the repository at this point in the history
  • Loading branch information
juanibiapina committed Feb 6, 2025
1 parent 43b59dd commit 31b7da3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nix/packages/nvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ in
cwd_hash=$(echo -n "$PWD" | ${if stdenv.isDarwin then "md5" else "${pkgs.outils}/bin/md5"})
socket_path="/tmp/nvim.$cwd_hash"
# Remove socket if it already exists (in case nvim crashed)
rm -f "$socket_path"
${wrapped}/bin/nvim --listen "$socket_path" "$@"
'';
};
Expand Down

0 comments on commit 31b7da3

Please sign in to comment.