Skip to content

Commit

Permalink
Update snack's scratch keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
Jendker committed Dec 1, 2024
1 parent 9801875 commit 1573a2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stow/common/dot-config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" },
"quicker.nvim": { "branch": "master", "commit": "049d66534d3de5920663ee1b8dd0096d70f55a67" },
"render-markdown.nvim": { "branch": "main", "commit": "1b5d11734122d9451d2e5e2e567fd61a62822293" },
"snacks.nvim": { "branch": "main", "commit": "3b75f0f529f82af1f4fd80a60ed7a9aa55d39772" },
"snacks.nvim": { "branch": "main", "commit": "67894ee778d567c8fb6f3e1e1774d1606d19ed27" },
"spaceless.nvim": { "branch": "main", "commit": "8d46bc098dba18d4e19bce89bf19aab5007ef767" },
"stickybuf.nvim": { "branch": "master", "commit": "183b9569bef78f44b17c078214f7d731f19cbefe" },
"substitute.nvim": { "branch": "main", "commit": "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
Expand Down
4 changes: 2 additions & 2 deletions stow/common/dot-config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1681,8 +1681,8 @@ local plugins = {
words = { enabled = false },
},
keys = {
{ "<leader>.", function() require("snacks").scratch() end, desc = "Toggle Scratch Buffer" },
{ "<leader>S", function() require("snacks").scratch.select() end, desc = "Select Scratch Buffer" },
{ "<leader>.", function() require("snacks").scratch({ ft = vim.bo.filetype }) end, desc = "Toggle Scratch Buffer" },
{ "<leader>S", function() require("snacks").scratch.select() end, desc = "Select Scratch Buffer" },
-- this doesn't seem to work, that's coupled with commented line above
-- { "]]", function() require("snacks").words.jump(vim.v.count1) end, desc = "Next Reference", mode = { "n", "t" } },
-- { "[[", function() require("snacks").words.jump(-vim.v.count1) end, desc = "Prev Reference", mode = { "n", "t" } },
Expand Down

0 comments on commit 1573a2d

Please sign in to comment.