refactor(nvim): manage Neovim with Home Manager
This commit is contained in:
parent
83c43d07df
commit
5630466780
42 changed files with 5 additions and 0 deletions
30
config/neovim/after/plugin/git.lua
Normal file
30
config/neovim/after/plugin/git.lua
Normal file
|
@ -0,0 +1,30 @@
|
|||
local status_ok, neogit = pcall(require, "neogit")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
neogit.setup {
|
||||
disable_commit_confirmation = true,
|
||||
}
|
||||
|
||||
local nmap = require("opdavies.keymap").nmap
|
||||
|
||||
nmap {
|
||||
"<leader>gc",
|
||||
function()
|
||||
neogit.open { "commit" }
|
||||
end,
|
||||
}
|
||||
nmap {
|
||||
"<leader>gl",
|
||||
function()
|
||||
neogit.open { "log" }
|
||||
end,
|
||||
}
|
||||
nmap {
|
||||
"<leader>gp",
|
||||
function()
|
||||
neogit.open { "push" }
|
||||
end,
|
||||
}
|
||||
nmap { "<leader>gs", neogit.open }
|
Loading…
Add table
Add a link
Reference in a new issue