about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-03 22:28:37 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-03 22:28:37 +0200
commitcbbbb9c17df779276741311462acccc87375d91b (patch)
treede3f0c85e9d3b4f5b9068ebb291b0eb0386d723b
parent342155ced8fc78b608f23454cb631decb0b7be9b (diff)
downloaddots-cbbbb9c17df779276741311462acccc87375d91b.tar.gz
dots-cbbbb9c17df779276741311462acccc87375d91b.zip
Add formating to nvim
-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; {