feat: add Neovim updater shortcut keys
This commit is contained in:
@@ -283,6 +283,11 @@ M.groups = {
|
|||||||
group = "CodeActions",
|
group = "CodeActions",
|
||||||
icon = { icon = "", color = "yellow" },
|
icon = { icon = "", color = "yellow" },
|
||||||
},
|
},
|
||||||
|
{ -- Neovim Updater menu
|
||||||
|
lhs = "<leader>qu",
|
||||||
|
group = "Neovim Updater",
|
||||||
|
icon = { icon = "", color = "red" },
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
M.gx = {
|
M.gx = {
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
return { -- Neovim Updater
|
return { -- Neovim Updater
|
||||||
"rootiest/nvim-updater.nvim",
|
"rootiest/nvim-updater.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
opts = {},
|
||||||
require("nvim_updater").setup({
|
|
||||||
source_dir = vim.fn.expand("~/.local/src/neovim"),
|
|
||||||
build_type = "RelWithDebInfo",
|
|
||||||
branch = "master",
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<Leader>quU",
|
"<Leader>quU",
|
||||||
@@ -21,6 +15,20 @@ return { -- Neovim Updater
|
|||||||
end,
|
end,
|
||||||
desc = "Debug Build Neovim",
|
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,
|
dev = vim.g.rootiest_dev or false,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user