about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--overlays.nix16
-rw-r--r--programs/nvim.nix2
2 files changed, 18 insertions, 0 deletions
diff --git a/overlays.nix b/overlays.nix
new file mode 100644
index 0000000..56da0df
--- /dev/null
+++ b/overlays.nix
@@ -0,0 +1,16 @@
+[
+  (self: super:
+let rev1 = "bd7360b";
+in {
+  neovim-unwrapped = super.neovim-unwrapped.overrideAttrs (oldAttrs: rec {
+    version = "nightly-${rev1}";
+    src = super.fetchFromGitHub rec {
+      name = "source-${oldAttrs.pname}-${version}-${rev1}";
+      owner = "neovim";
+      repo = "neovim";
+      rev = rev1;
+      sha256 = "0lg9hwvcaiwj9z6wp9rw80czfs7l3bwvcc916fz87jxafp683m37";
+    };
+  });
+})
+]
diff --git a/programs/nvim.nix b/programs/nvim.nix
index d423fdf..63e923b 100644
--- a/programs/nvim.nix
+++ b/programs/nvim.nix
@@ -135,6 +135,8 @@ pkgs.neovim.override {
       nnoremap <silent> <C-f> :GFiles<CR>
       nnoremap <silent> <Leader>f :Rg<CR>
       map <C-n> :NERDTreeToggle<CR>
+
+      map <F9> gg=G
     '';
 
     packages.myVimPackage = with pkgs.vimPlugins; {