diff --git a/nvim/.config/nvim/fnl/dotfiles/plugin/fugitive.fnl b/nvim/.config/nvim/fnl/dotfiles/plugin/fugitive.fnl new file mode 100644 index 0000000..65771a1 --- /dev/null +++ b/nvim/.config/nvim/fnl/dotfiles/plugin/fugitive.fnl @@ -0,0 +1,11 @@ +(module dotfiles.plugin.fugitive + {autoload {nvim aniseed.nvim + nu aniseed.nvim.util + core aniseed.core + util dotfiles.util + fugitive fugitive + }}) + + +(nvim.ex.autocmd :FileType :fugitive :nmap :gp ":Git pull --rebase") +(nvim.ex.autocmd :FileType :fugitive :nmap :gP (.. ":Git push origin" (FugitiveHead))) diff --git a/nvim/.config/nvim/fnl/dotfiles/plugins.fnl b/nvim/.config/nvim/fnl/dotfiles/plugins.fnl index 2327aee..9e1f147 100644 --- a/nvim/.config/nvim/fnl/dotfiles/plugins.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/plugins.fnl @@ -62,7 +62,7 @@ :tpope/vim-classpath {} :tpope/vim-dadbod {} :tpope/vim-dispatch {} ; Conjure support - jack-in with nrepl dependencies - :tpope/vim-fugitive {} ; Git + :tpope/vim-fugitive {:mod :fugitive} ; Git :tpope/vim-git {} ; Git Commit Message :tpope/vim-pathogen {} :tpope/vim-rails {}