feat: add Neovim updater shortcut keys

This commit is contained in:
2024-09-14 15:21:38 -04:00
parent 3689c29aae
commit 22aa2b890a
2 changed files with 20 additions and 7 deletions
+15 -7
View File
@@ -1,13 +1,7 @@
return { -- Neovim Updater
"rootiest/nvim-updater.nvim",
lazy = false,
config = function()
require("nvim_updater").setup({
source_dir = vim.fn.expand("~/.local/src/neovim"),
build_type = "RelWithDebInfo",
branch = "master",
})
end,
opts = {},
keys = {
{
"<Leader>quU",
@@ -21,6 +15,20 @@ return { -- Neovim Updater
end,
desc = "Debug Build Neovim",
},
{
"<Leader>quR",
function()
require("nvim_updater").update_neovim({ build_type = "Release" })
end,
desc = "Release Build Neovim",
},
{
"<Leader>quC",
function()
require("nvim_updater").remove_source_dir()
end,
desc = "Clean Neovim Source",
},
},
dev = vim.g.rootiest_dev or false,
}