mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-11-22 14:58:25 -06:00
nvim: Try Neogit instead of Fugitive
This commit is contained in:
2 files changed
+8
-14
No files matched your search
@@ -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 {})
|
||||||
|
|||||||
@@ -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}}
|
|
||||||
Reference in new issue
Block a user