From 16a1126200932407f9f4562fba961b514a1c91d1 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 9 Apr 2024 19:49:37 -0400 Subject: auto import all files, cleanup + add a few things --- neovim.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'neovim.nix') diff --git a/neovim.nix b/neovim.nix index bf7400a..4d99563 100644 --- a/neovim.nix +++ b/neovim.nix @@ -5,16 +5,12 @@ self: { }: let config = pkgs.vimUtils.buildVimPlugin { pname = "neovim-config"; - version = builtins.substring 0 8 self.rev or self.dirtyRev or "dirty"; + version = self.shortRev or self.dirtyShortRev or "unknown-dirty"; - src = null; - - dontUnpack = true; - - buildPhase = '' - mkdir -p lua - cp -r ${./config} lua/getchoo - ''; + src = lib.fileset.toSource { + root = ./config; + fileset = lib.fileset.gitTracked ./config; + }; }; plugins = with pkgs.vimPlugins; [ @@ -53,9 +49,9 @@ self: { plenary-nvim nvim-treesitter.withAllGrammars + nvim-treesitter-context nvim-ts-context-commentstring nvim-ts-autotag - vim-just trouble-nvim which-key-nvim -- cgit v1.2.3