aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-12-20 16:50:23 +0530
committerAkshay Nair <phenax5@gmail.com>2020-12-20 16:50:23 +0530
commit3690d8a637dc891704d5681d535dc660f83fb66b (patch)
tree7d9c70a4a7d33cb5175603b011043bf3f6dba29c
parent568f7903ca7464f99df659b8488bd731e4f2c4f0 (diff)
downloadnixos-config-3690d8a637dc891704d5681d535dc660f83fb66b.tar.gz
nixos-config-3690d8a637dc891704d5681d535dc660f83fb66b.zip
Adds neovim config as submodule
-rw-r--r--.gitmodules4
-rw-r--r--external/nvim/neovim.nix19
2 files changed, 21 insertions, 2 deletions
diff --git a/.gitmodules b/.gitmodules
index 76f089b..8cd1176 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,3 @@
-[submodule "external/nvim/config"]
- path = external/nvim/config
+[submodule "~/nixos/external/nvim/config"]
+ path = ~/nixos/external/nvim/config
url = https://github.com/phenax/peepeepoopoo-nvim-config.git
diff --git a/external/nvim/neovim.nix b/external/nvim/neovim.nix
new file mode 100644
index 0000000..ef0254a
--- /dev/null
+++ b/external/nvim/neovim.nix
@@ -0,0 +1,19 @@
+self: super: {
+ tree-sitter-updated = super.tree-sitter.overrideAttrs(oldAttrs: {
+ postInstall = ''
+ PREFIX=$out make install;
+ '';
+ });
+ neovim-unwrapped = super.neovim-unwrapped.overrideAttrs (oldAttrs: rec {
+ name = "neovim-nightly";
+ version = "0.5-nightly";
+ src = self.fetchFromGitHub {
+ owner = "neovim";
+ repo = "neovim";
+ rev = "nightly";
+ sha256 = "0vpjdd32lgzyh85gyazqpms8vmaad6px3zx2svdxhvcdxgschqz9";
+ };
+
+ nativeBuildInputs = with self.pkgs; [ unzip cmake pkgconfig gettext tree-sitter-updated ];
+ });
+}