summaryrefslogtreecommitdiff
path: root/lua/config/map.lua
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-11-04 07:35:34 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-11-04 07:35:34 +0100
commit379cd763460659bfdbd49386108a9a5ab68663c2 (patch)
tree8778abcf5ee27a6e781e5179fd4d6ef0b6ee9523 /lua/config/map.lua
parent68b90b79f06a0fa09866f35e84e4c72405ac547d (diff)
checkpoint
Diffstat (limited to 'lua/config/map.lua')
-rw-r--r--lua/config/map.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/config/map.lua b/lua/config/map.lua
index c676ba5..ace8134 100644
--- a/lua/config/map.lua
+++ b/lua/config/map.lua
@@ -96,3 +96,15 @@ end, { desc = "Toggle diagnostics" })
-- editing
map("n", " sf", ":%s/\\<<C-R><C-W>\\>//gc<Left><Left><Left>", { desc = "Replace word under cursor in file" })
map("n", " sl", ":s/\\<<C-R><C-W>\\>//g<Left><Left>", { desc = "Replace word under cursor on current line" })
+
+map("n", "]q", "<cmd>cn<cr>", { desc = "Next item in quickfix", silent = true })
+map("n", "[q", "<cmd>cp<cr>", { desc = "Next item in quickfix", silent = true })
+
+vim.api.nvim_create_user_command("Scratch", function()
+ vim.cmd([[
+ e scratch
+ setlocal buftype=nofile
+ setlocal bufhidden=hide
+ setlocal noswapfile
+ ]])
+end, {})