diff --git a/lua/data/keys.lua b/lua/data/keys.lua index d0195c6..600c78d 100644 --- a/lua/data/keys.lua +++ b/lua/data/keys.lua @@ -283,6 +283,11 @@ M.groups = { group = "CodeActions", icon = { icon = "", color = "yellow" }, }, + { -- Neovim Updater menu + lhs = "qu", + group = "Neovim Updater", + icon = { icon = "", color = "red" }, + }, } M.gx = { diff --git a/lua/plugins/nvim_updater.lua b/lua/plugins/nvim_updater.lua index bf39bcb..93f3402 100644 --- a/lua/plugins/nvim_updater.lua +++ b/lua/plugins/nvim_updater.lua @@ -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 = { { "quU", @@ -21,6 +15,20 @@ return { -- Neovim Updater end, desc = "Debug Build Neovim", }, + { + "quR", + function() + require("nvim_updater").update_neovim({ build_type = "Release" }) + end, + desc = "Release Build Neovim", + }, + { + "quC", + function() + require("nvim_updater").remove_source_dir() + end, + desc = "Clean Neovim Source", + }, }, dev = vim.g.rootiest_dev or false, }