mirror of
https://github.com/Cian-H/my_nvim_config.git
synced 2026-02-20 15:28:05 +00:00
Minor plugin upgrades
This commit is contained in:
@@ -27,6 +27,28 @@ return {
|
||||
{ "<leader>p", group = "[P]recognition", icon = "" },
|
||||
{ "<leader>?", group = "[?] Cheatsheet", icon = "" },
|
||||
},
|
||||
globals = {
|
||||
-- Window Navigation
|
||||
{ "<A-h>", "<C-w>h", desc = "Window Left" },
|
||||
{ "<A-j>", "<C-w>j", desc = "Window Down" },
|
||||
{ "<A-k>", "<C-w>k", desc = "Window Up" },
|
||||
{ "<A-l>", "<C-w>l", desc = "Window Right" },
|
||||
-- Window Resizing
|
||||
{ "<A-=>", "<C-w>+", desc = "Resize Increase Height" },
|
||||
{ "<A-->", "<C-w>-", desc = "Resize Decrease Height" },
|
||||
{ "<A-.>", "<C-w>>", desc = "Resize Increase Width" },
|
||||
{ "<A-,>", "<C-w><", desc = "Resize Decrease Width" },
|
||||
-- Splits
|
||||
{ "<A-n>", "<C-w>s", desc = "Split Window Horizontal" },
|
||||
{ "<A-;>", "<C-w>x", desc = "Swap Window" },
|
||||
{ "<A-q>", ":q<CR>", desc = "Close Window" },
|
||||
-- Misc
|
||||
{ "<Esc>", "<cmd>nohlsearch<CR>", desc = "Clear Highlight" },
|
||||
{ "<leader>dd", vim.diagnostic.open_float, desc = "Show [D]iagnostics" },
|
||||
},
|
||||
atone = {
|
||||
{ "U", vim.api.nvim_command("Atone toggle"), desc = "[U]ndotree" },
|
||||
},
|
||||
gitsigns = {
|
||||
{
|
||||
"<leader>gs",
|
||||
@@ -89,25 +111,7 @@ return {
|
||||
expr = true,
|
||||
},
|
||||
},
|
||||
globals = {
|
||||
-- Window Navigation
|
||||
{ "<A-h>", "<C-w>h", desc = "Window Left" },
|
||||
{ "<A-j>", "<C-w>j", desc = "Window Down" },
|
||||
{ "<A-k>", "<C-w>k", desc = "Window Up" },
|
||||
{ "<A-l>", "<C-w>l", desc = "Window Right" },
|
||||
-- Window Resizing
|
||||
{ "<A-=>", "<C-w>+", desc = "Resize Increase Height" },
|
||||
{ "<A-->", "<C-w>-", desc = "Resize Decrease Height" },
|
||||
{ "<A-.>", "<C-w>>", desc = "Resize Increase Width" },
|
||||
{ "<A-,>", "<C-w><", desc = "Resize Decrease Width" },
|
||||
-- Splits
|
||||
{ "<A-n>", "<C-w>s", desc = "Split Window Horizontal" },
|
||||
{ "<A-;>", "<C-w>x", desc = "Swap Window" },
|
||||
{ "<A-q>", ":q<CR>", desc = "Close Window" },
|
||||
-- Misc
|
||||
{ "<Esc>", "<cmd>nohlsearch<CR>", desc = "Clear Highlight" },
|
||||
{ "<leader>dd", vim.diagnostic.open_float, desc = "Show [D]iagnostics" },
|
||||
},
|
||||
|
||||
harpoon = {
|
||||
{
|
||||
"<leader>ha",
|
||||
@@ -162,25 +166,19 @@ return {
|
||||
lazygit = {
|
||||
{
|
||||
"<leader>lg",
|
||||
function()
|
||||
vim.api.nvim_command("lua Snacks.lazygit()")
|
||||
end,
|
||||
Snacks.lazygit,
|
||||
desc = "[L]azy[G]it",
|
||||
mode = "n",
|
||||
},
|
||||
{
|
||||
"<leader>ll",
|
||||
function()
|
||||
vim.api.nvim_command("lua Snacks.lazygit.log()")
|
||||
end,
|
||||
Snacks.lazygit.log,
|
||||
desc = "[L]azyGit [L]og",
|
||||
mode = "n",
|
||||
},
|
||||
{
|
||||
"<leader>lf",
|
||||
function()
|
||||
vim.api.nvim_command("lua Snacks.lazygit.log_file()")
|
||||
end,
|
||||
Snacks.lazygit.log_file,
|
||||
desc = "[L]azyGit [F]ile Log",
|
||||
mode = "n",
|
||||
},
|
||||
@@ -507,7 +505,4 @@ return {
|
||||
desc = "Toggle Rainbow Delimiters",
|
||||
},
|
||||
},
|
||||
undotree = {
|
||||
{ "U", vim.cmd.UndotreeToggle, desc = "[U]ndotree" },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -108,6 +108,12 @@ return {
|
||||
{ -- Undo tree
|
||||
"mbbill/undotree",
|
||||
event = "VeryLazy",
|
||||
keys = require("config.keys").undotree,
|
||||
},
|
||||
{
|
||||
"XXiaoA/atone.nvim",
|
||||
event = "VeryLazy",
|
||||
cmd = "Atone",
|
||||
keys = require("config.keys").atone,
|
||||
opts = {},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user