Skip to content

Commit

Permalink
feat: new mapping for calling ':%s/'
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Jul 2, 2023
1 parent a4a16a5 commit f91efc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/core/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ end)
-- save like your are used to
map({ "i", "v", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>", { desc = "Save file" })

-- search and replace is a pain with a German keyboard layout
map({ "v", "n" }, "<leader>sr", ":%s/", { desc = "Buffer search and replace" })

-- toggles
map("n", "<leader>th", function()
Expand Down

0 comments on commit f91efc0

Please sign in to comment.