about summary refs log tree commit diff
path: root/users/wpcarro/tools/simple_vim/default.nix
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-10-24T18·34-0700
committerclbot <clbot@tvl.fyi>2022-01-08T05·55+0000
commit4977ffacb017fe1ff5030eeeabe147ad242eb162 (patch)
tree4126446b555305d1b5e61179a1862406b58034c4 /users/wpcarro/tools/simple_vim/default.nix
parent54d3cc78dd2aaf10c6742f4703c9573bc53f661b (diff)
fix(wpcarro/simple_vim): Debug simple_vim r/3553
No need to `mkDerivation` when I'm already using `writeShellScriptBin`. Also:
prefer `<CR>` instead of `<Enter>` for consistency reasons.

Change-Id: Ida8ecec0bd4e3e8c0fbb1ea34eefd61a0fefb4bc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4797
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/tools/simple_vim/default.nix')
-rw-r--r--users/wpcarro/tools/simple_vim/default.nix10
1 files changed, 2 insertions, 8 deletions
diff --git a/users/wpcarro/tools/simple_vim/default.nix b/users/wpcarro/tools/simple_vim/default.nix
index 6631fdfff5da..01b1d5d3fe08 100644
--- a/users/wpcarro/tools/simple_vim/default.nix
+++ b/users/wpcarro/tools/simple_vim/default.nix
@@ -1,11 +1,5 @@
 { pkgs, ... }:
 
-let
-  configVim = builtins.path {
-    path = ./config.vim;
-    name = "config.vim";
-  };
-
-in pkgs.writeShellScriptBin "simple_vim" ''
-  ${pkgs.vim}/bin/vim -u ${configVim}
+pkgs.writeShellScriptBin "simple_vim" ''
+  ${pkgs.neovim}/bin/nvim -u ${./config.vim} $@
 ''