Skip to content

Commit

Permalink
feat(keymap): add q keymap to quit a chase buffer
Browse files Browse the repository at this point in the history
Refs: #6
  • Loading branch information
piraz committed Jul 18, 2023
1 parent 69080b1 commit 8fd7796
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/chase/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function M.buf_open(name, type)
vim.api.nvim_buf_set_option(buf, "buftype", "nowrite")
vim.api.nvim_buf_set_option(buf, "filetype", type)
vim.api.nvim_buf_set_option(buf, "buflisted", false)
vim.api.nvim_buf_set_keymap(buf, "n", "q", ":q!<CR>", {})
vim.api.nvim_set_current_win(cur_win)
return buf
end
Expand Down

0 comments on commit 8fd7796

Please sign in to comment.