feat(nvim): add new keymaps for lazy.nvim operations such as sync, check for update and update all plugins

This commit is contained in:
Sergio Laín 2024-02-13 10:32:53 +01:00
parent 065f3106b9
commit 0f60cddd52
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -15,10 +15,13 @@ map("n", "<leader>?", searching_brave, { noremap = true, silent = true, desc = "
-- Lazy options
map("n", "<leader>ll", "<cmd>Lazy<cr>", { desc = "Lazy" })
-- stylua: ignore start
map("n", "<leader>ld", function() vim.fn.system({ "xdg-open", "https://lazyvim.org" }) end, { desc = "Docs" })
map("n", "<leader>lr", function() vim.fn.system({ "xdg-open", "https://github.com/LazyVim/LazyVim" }) end, { desc = "Repo" })
map("n", "<leader>le", "<cmd>LazyExtras<cr>", { desc = "Extras" })
map("n", "<leader>ld", function() vim.fn.system({ "xdg-open", "https://lazyvim.org" }) end, { desc = "LazyVim Docs" })
map("n", "<leader>lr", function() vim.fn.system({ "xdg-open", "https://github.com/LazyVim/LazyVim" }) end, { desc = "LazyVim Repo" })
map("n", "<leader>lx", "<cmd>LazyExtras<cr>", { desc = "Extras" })
map("n", "<leader>lc", function() Util.news.changelog() end, { desc = "LazyVim Changelog" })
map("n", "<leader>lu", function() require("lazy").update() end, { desc = "Lazy Update" })
map("n", "<leader>lC", function() require("lazy").check() end, { desc = "Lazy Check" })
map("n", "<leader>ls", function() require("lazy").sync() end, { desc = "Lazy Sync" })
-- stylua: ignore end
-- Disable LazyVim bindings