Fix nvim view saving

work
Matthew Ess 2020-01-03 14:10:52 -05:00
parent fb2c81f350
commit b998aed948
1 changed files with 5 additions and 6 deletions

View File

@ -5,10 +5,10 @@ let
email = "daringseal@gmail.com"; email = "daringseal@gmail.com";
workEmail = "mess@yelp.com"; workEmail = "mess@yelp.com";
lockCmd = "i3lock -i ~/.lockscreen-image"; lockCmd = "i3lock -i ~/.lockscreen-image";
niv = import (builtins.fetchTarball { niv = (import (builtins.fetchTarball {
url = "https://github.com/nmattia/niv/tarball/abd0de3269fd712955d27b70e32921841c7b8bb7"; url = "https://github.com/nmattia/niv/tarball/abd0de3269fd712955d27b70e32921841c7b8bb7";
sha256 = "0b38n1ad00s1qqyw3ml3pypf8i1pw4aqw0bpa02qq9iv7sp3x0gz"; sha256 = "0b38n1ad00s1qqyw3ml3pypf8i1pw4aqw0bpa02qq9iv7sp3x0gz";
}) { }; }) { }).niv;
in { in {
home = { home = {
@ -20,7 +20,7 @@ in {
packages = with pkgs; [ packages = with pkgs; [
# nix utilities # nix utilities
cachix cachix
niv.niv niv
nixfmt nixfmt
nix-prefetch-git nix-prefetch-git
# command line utilities # command line utilities
@ -217,9 +217,8 @@ in {
"lightline options "lightline options
let g:lightline = {'colorscheme': 'jellybeans'} let g:lightline = {'colorscheme': 'jellybeans'}
"view saving "cursor saving
au BufWinLeave ?* mkview 1 autocmd BufReadPost * if @% !~# '\.git[\/\\]COMMIT_EDITMSG$' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
au BufWinEnter ?* silent loadview 1
"nerdtree "nerdtree
"show hidden files "show hidden files