feat: Use neogit instead of vimagit

This commit is contained in:
Jeremy Wall 2024-03-12 10:11:14 -04:00
parent a811cd131f
commit 9b2bd1fbfa
3 changed files with 13 additions and 6 deletions

View File

@ -329,11 +329,11 @@
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1709072133,
"narHash": "sha256-RdDYNockp2wH22DdJlQ/h8IJnB9n9U3XLIAI4dqMQME=",
"lastModified": 1710102698,
"narHash": "sha256-PO4wOhMGqL1zVWSTiGMPGnW1aC5urvInhd9TV82LF0E=",
"owner": "zaphar",
"repo": "Heracles",
"rev": "782cca41a0b44ea8ac68c696f73d5491197a933b",
"rev": "00e84bd99a2ccf25363034ac9de7eeba916867a8",
"type": "github"
},
"original": {

View File

@ -132,7 +132,7 @@ EOF";
cmp-nvim-lsp-signature-help
nvim-dap # Debug Adapter Protocol support
#nvim-dap-ui
vimagit
neogit
hoon-vim
nvim-treesitter
lean-nvim
@ -190,7 +190,7 @@ EOF";
nil-pkg
lua-language-server
rust-analyzer
#omnisharp-roslyn
omnisharp-roslyn
]);
};
};

View File

@ -452,8 +452,13 @@ vim.keymap.set("n", "<Leader>ts", function()
vim.cmd("tabs")
end)
-- Neogit integration
-- See https://github.com/NeogitOrg/neogit for configuration information.
local neogit = require('neogit')
neogit.setup()
vim.keymap.set("n", "<Leader>mg", function()
vim.cmd("MagitOnly")
neogit.open()
end)
-- Add a file to git
@ -525,7 +530,9 @@ lean.setup {
-- telescope keymaps
vim.keymap.set("n", "<Leader>pl", telescope.extensions.possession.list)
-- TODO(zaphar): Remove this once my muscle memory has set in.
vim.keymap.set("n", "<Leader>nff", telescope_builtins.fd)
vim.keymap.set("n", "<Leader>ff", telescope_builtins.fd)
vim.keymap.set("n", "<Leader>rl", telescope_builtins.lsp_references)
vim.keymap.set("n", "<Leader>rn", vim.lsp.buf.rename)
vim.keymap.set("n", "<Leader>sl", telescope_builtins.lsp_workspace_symbols)