summaryrefslogtreecommitdiffstats
path: root/lass/2configs/vim.nix
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-06-20 19:31:19 +0200
committerlassulus <lass@lassul.us>2017-06-20 19:31:19 +0200
commit915ccf6ee26688be9daf37a6083b91be95cae024 (patch)
tree18dd85796c90fe7898a2b3a8e8c505ea672598a3 /lass/2configs/vim.nix
parentfbabdb5081366e295fb10a2486fcc66e43a20ed1 (diff)
parenta9f4ad7586bfb543cdcdeacf93b71bdce506621a (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'lass/2configs/vim.nix')
-rw-r--r--lass/2configs/vim.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/lass/2configs/vim.nix b/lass/2configs/vim.nix
index 40f7eedde..b2b0c309a 100644
--- a/lass/2configs/vim.nix
+++ b/lass/2configs/vim.nix
@@ -207,14 +207,17 @@ let
alldirs = attrValues dirs ++ map dirOf (attrValues files);
in unique (sort lessThan alldirs);
- vim = pkgs.concat "vim" [
- pkgs.vim
- (pkgs.writeDashBin "vim" ''
- set -efu
- (umask 0077; exec ${pkgs.coreutils}/bin/mkdir -p ${toString mkdirs})
- exec ${pkgs.vim}/bin/vim "$@"
- '')
- ];
+ vim = pkgs.symlinkJoin {
+ name = "vim";
+ paths = [
+ pkgs.vim
+ (pkgs.writeDashBin "vim" ''
+ set -efu
+ (umask 0077; exec ${pkgs.coreutils}/bin/mkdir -p ${toString mkdirs})
+ exec ${pkgs.vim}/bin/vim "$@"
+ '')
+ ];
+ };
hs.vim = pkgs.writeText "hs.vim" ''
syn region String start=+\[[[:alnum:]]*|+ end=+|]+