Skip to content

Commit 45f8482

Browse files
committed
fix: Update mappings README
1 parent fb8aa3f commit 45f8482

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,20 +165,20 @@ can be used by creating key mappings:
165165

166166
```lua
167167
-- Delete the mark under the cursor
168-
vim.keymap.set("m;", require("guttermarks.actions").delete_mark)
168+
vim.keymap.set("n", "m;", require("guttermarks.actions").delete_mark)
169169

170170
-- Navigate to next/previous mark in current buffer
171-
vim.keymap.set("]m", require("guttermarks.actions").next_buf_mark)
172-
vim.keymap.set("[m", require("guttermarks.actions").prev_buf_mark)
171+
vim.keymap.set("n", "]m", require("guttermarks.actions").next_buf_mark)
172+
vim.keymap.set("n", "[m", require("guttermarks.actions").prev_buf_mark)
173173

174174
-- Send marks to quickfix (and open it)
175-
vim.keymap.set("<leader>mq", function()
175+
vim.keymap.set("n", "<leader>mq", function()
176176
require("guttermarks.actions").marks_to_quickfix()
177177
vim.cmd("copen")
178178
end)
179179

180180
-- Send marks to quickfix (include special marks)
181-
vim.keymap.set("<leader>mQ", function()
181+
vim.keymap.set("n", "<leader>mQ", function()
182182
require("guttermarks.actions").marks_to_quickfix({
183183
special_mark = true,
184184
})

0 commit comments

Comments
 (0)