nvim: Try Neogit instead of Fugitive

This commit is contained in:
proctor committed 2026-06-03 15:13:09 -05:00
1 parent 9a29dd8433
commit 8cade13a72
2 files changed
+8 -14

No files matched your search

+7 -7
View File
@@ -6,17 +6,17 @@
(fn bufmap [mode from to] (util.noremap mode from to {:local? true})) (fn bufmap [mode from to] (util.noremap mode from to {:local? true}))
(fn map-fugitive-keys [] ; (fn map-fugitive-keys []
(bufmap :n :<leader>gp ":Git pull<CR>") ; (bufmap :n :<leader>gp ":Git pull<CR>")
(bufmap :n :<leader>gP ":Git push<CR>") ; (bufmap :n :<leader>gP ":Git push<CR>")
(bufmap :n :<leader>gF ":Git push -f<CR>")) ; (bufmap :n :<leader>gF ":Git push -f<CR>"))
(vim.api.nvim_create_autocmd [:FileType] ; (vim.api.nvim_create_autocmd [:FileType]
{:pattern :fugitive :callback map-fugitive-keys}) ; {:pattern :fugitive :callback map-fugitive-keys})
[(tx :tpope/vim-dadbod {}) [(tx :tpope/vim-dadbod {})
(tx :tpope/vim-dispatch {}) (tx :tpope/vim-dispatch {})
(tx :tpope/vim-fugitive {}) ; (tx :tpope/vim-fugitive {})
(tx :tpope/vim-git {:lazy false}) (tx :tpope/vim-git {:lazy false})
(tx :tpope/vim-pathogen {}) (tx :tpope/vim-pathogen {})
(tx :tpope/vim-rails {}) (tx :tpope/vim-rails {})
+1 -7
View File
@@ -3,10 +3,4 @@ local util = require("dotfiles.util")
local function bufmap(mode, from, to) local function bufmap(mode, from, to)
return util.noremap(mode, from, to, {["local?"] = true}) return util.noremap(mode, from, to, {["local?"] = true})
end end
local function map_fugitive_keys() return {{"tpope/vim-dadbod"}, {"tpope/vim-dispatch"}, {"tpope/vim-git", lazy = false}, {"tpope/vim-pathogen"}, {"tpope/vim-rails"}, {"tpope/vim-repeat"}, {"tpope/vim-rhubarb"}, {"tpope/vim-surround"}, {"tpope/vim-unimpaired"}, {"tpope/vim-vinegar", lazy = false}}
bufmap("n", "<leader>gp", ":Git pull<CR>")
bufmap("n", "<leader>gP", ":Git push<CR>")
return bufmap("n", "<leader>gF", ":Git push -f<CR>")
end
vim.api.nvim_create_autocmd({"FileType"}, {pattern = "fugitive", callback = map_fugitive_keys})
return {{"tpope/vim-dadbod"}, {"tpope/vim-dispatch"}, {"tpope/vim-fugitive"}, {"tpope/vim-git", lazy = false}, {"tpope/vim-pathogen"}, {"tpope/vim-rails"}, {"tpope/vim-repeat"}, {"tpope/vim-rhubarb"}, {"tpope/vim-surround"}, {"tpope/vim-unimpaired"}, {"tpope/vim-vinegar", lazy = false}}