diff --git a/nvim/.config/nvim/lua/plugins/snacks.lua b/nvim/.config/nvim/lua/plugins/snacks.lua index 5c09ff3..7533070 100644 --- a/nvim/.config/nvim/lua/plugins/snacks.lua +++ b/nvim/.config/nvim/lua/plugins/snacks.lua @@ -6,11 +6,7 @@ return { Snacks.picker.smart() end, { desc = "Smart Find Files" }) - set("n", "", function() - Snacks.picker.smart() - end, { desc = "Smart Find Files" }) - - set("n", "a", function() + set("n", "b", function() Snacks.picker.buffers() end, { desc = "Buffers" }) @@ -22,19 +18,19 @@ return { Snacks.picker.resume() end, { desc = "Resume" }) - set("n", "b", function() + set("n", "l", function() Snacks.picker.lines() end, { desc = "Buffer lines" }) - set("n", "B", function() + set("n", "L", function() Snacks.picker.grep_buffers() end, { desc = "Grep Open Buffers" }) - set("n", "f", function() + set("n", "F", function() Snacks.picker.files() end, { desc = "Find Files" }) - set("n", "s", function() + set("n", "S", function() Snacks.picker.grep() end, { desc = "Grep" }) @@ -42,22 +38,42 @@ return { Snacks.picker.git_status() end, { desc = "Git Status" }) - set("n", "g", function() + set("n", "f", function() Snacks.picker.git_files() end, { desc = "Find Git Files" }) - set("n", "G", function() + set("n", "s", function() Snacks.picker.git_grep() end, { desc = "Git Grep" }) - set("n", "l", function() + set("n", "w", function() + Snacks.picker.grep_word() + end, { desc = "Grep word" }) + + set("n", "g", function() Snacks.lazygit() end, { desc = "Lazygit" }) - set("n", "L", function() + set("n", "G", function() Snacks.lazygit.log_file() end, { desc = "Lazygit log file" }) + set("n", "m", function() + Snacks.picker.marks() + end, { desc = "Marks" }) + + set("n", "M", function() + Snacks.picker.man() + end, { desc = "Marks" }) + + set("n", "U", function() + Snacks.picker.undo() + end, { desc = "Marks" }) + + set("n", "xc", function() + Snacks.picker.colorschemes() + end, { desc = "Marks" }) + set("n", "n", function() Snacks.notifier.show_history() end, { desc = "Notification History" }) @@ -71,6 +87,10 @@ return { end, { desc = "Commands" }) set("n", "h", function() + Snacks.picker.highlights() + end, { desc = "Keymaps" }) + + set("n", "k", function() Snacks.picker.keymaps() end, { desc = "Keymaps" }) @@ -99,7 +119,7 @@ return { Snacks.picker.lsp_declarations() end, { desc = "Goto Declaration" }) - set("n", "gr", function() + set("n", "grr", function() Snacks.picker.lsp_references() end, { desc = "References" })