Skip to content

Commit

Permalink
chore: change remap to destroy attached chase buffer to leader q
Browse files Browse the repository at this point in the history
Before was just q. That was overwriting the default macro keymap.

Refs: #13
  • Loading branch information
piraz committed May 23, 2024
1 parent 9166477 commit 2bbdfd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/chase/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function M.buf_open(name, buf, type)
vim.api.nvim_buf_set_option(chase_buf, "filetype", type)
vim.api.nvim_buf_set_option(chase_buf, "buflisted", false)
vim.api.nvim_buf_set_var(chase_buf, "original_buf", buf)
vim.api.nvim_buf_set_keymap(chase_buf, "n", "q", "",
vim.api.nvim_buf_set_keymap(chase_buf, "n", "<leader>q", "",
{callback = function()
M.chase_buf_destroy(chase_buf)
end}
Expand Down Expand Up @@ -192,7 +192,7 @@ function M.on_buf_enter(extra_keymaps)
},
{
mode = "n",
lhs = "q",
lhs = "<leader>q",
opts = { callback = function () M.destroy_my_chase(cur_buf) end },
},
}
Expand Down

0 comments on commit 2bbdfd8

Please sign in to comment.