Skip to content

Commit

Permalink
fix(flash): add treesitter keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
realeinherjar committed Sep 7, 2023
1 parent 92032c1 commit e533dd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1008,8 +1008,10 @@ require("lazy").setup({
event = "VeryLazy",
-- stylua: ignore
keys = {
{ "s", mode = { "n", "o", "x" }, function() require("flash").jump() end, desc = "Flash", },
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash", },
{ "s", mode = { "n", "o", "x" }, function() require("flash").jump() end, desc = "Flash" },
-- { "S", mode = { "n", "o", "x" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" }, -- conflicts with nvim.surround `S`.
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
},
},
})
Expand Down

0 comments on commit e533dd0

Please sign in to comment.