diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-10-03 22:28:37 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-10-03 22:28:37 +0200 |
commit | cbbbb9c17df779276741311462acccc87375d91b (patch) | |
tree | de3f0c85e9d3b4f5b9068ebb291b0eb0386d723b | |
parent | 342155ced8fc78b608f23454cb631decb0b7be9b (diff) | |
download | dots-cbbbb9c17df779276741311462acccc87375d91b.tar.gz dots-cbbbb9c17df779276741311462acccc87375d91b.zip |
Add formating to nvim
-rw-r--r-- | overlays.nix | 16 | ||||
-rw-r--r-- | programs/nvim.nix | 2 |
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; { |