mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 08:35:53 +02:00
## Description LazyVim comes with a bunch of smaller QoL plugin like features, but it's not easy for non LazyVim users to use them. That's why I started working on [snacks.nvim](https://github.com/folke/snacks.nvim), a collection of small QoL plugins for Neovim. Snacks also includes a bunch of new improvements to these features. This PR fully integrates with snacks. ## Todo - [ ] add proper deprecations where needed - [ ] create snacks docs - [ ] document all the new improvements relevant to LazyVim users ## Closes - [ ] #4492 - [ ] #4333 - [ ] #4687 ## Screenshots <!-- Add screenshots of the changes if applicable. --> ## Checklist - [ ] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
35 lines
804 B
Lua
35 lines
804 B
Lua
return {
|
|
|
|
-- Ensure GitUI tool is installed
|
|
{
|
|
"williamboman/mason.nvim",
|
|
opts = { ensure_installed = { "gitui" } },
|
|
keys = {
|
|
{
|
|
"<leader>gG",
|
|
function()
|
|
Snacks.terminal({ "gitui" })
|
|
end,
|
|
desc = "GitUi (cwd)",
|
|
},
|
|
{
|
|
"<leader>gg",
|
|
function()
|
|
Snacks.terminal({ "gitui" }, { cwd = LazyVim.root.get() })
|
|
end,
|
|
desc = "GitUi (Root Dir)",
|
|
},
|
|
},
|
|
init = function()
|
|
-- delete lazygit keymap for file history
|
|
vim.api.nvim_create_autocmd("User", {
|
|
pattern = "LazyVimKeymaps",
|
|
once = true,
|
|
callback = function()
|
|
pcall(vim.keymap.del, "n", "<leader>gf")
|
|
pcall(vim.keymap.del, "n", "<leader>gl")
|
|
end,
|
|
})
|
|
end,
|
|
},
|
|
}
|