Skip to content

Commit

Permalink
Added scratch maps to snacks
Browse files Browse the repository at this point in the history
  • Loading branch information
crivotz committed Dec 6, 2024
1 parent 2cda914 commit adf443e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/plugins/snacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ return {
{ "<leader>gic", function() local issue_number = vim.fn.input('Issue Number -> ') Snacks.terminal("gh issue close " .. issue_number) end, },
{ "]]", function() Snacks.words.jump(vim.v.count1) end, desc = "Next Reference" },
{ "[[", function() Snacks.words.jump(-vim.v.count1) end, desc = "Prev Reference" },
{ "<leader>.", function() Snacks.scratch() end, desc = "Toggle Scratch Buffer" },
{ "<leader>S", function() Snacks.scratch.select() end, desc = "Select Scratch Buffer" },
},
init = function()
vim.api.nvim_create_autocmd("User", {
Expand Down

0 comments on commit adf443e

Please sign in to comment.