feat: add Neovim updater shortcut keys
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user