From 9503f8b3744e8f86c188da0cff6c213f18f53638 Mon Sep 17 00:00:00 2001 From: b1n <120295547+b1nhack@users.noreply.github.com> Date: Thu, 16 May 2024 06:43:12 +0800 Subject: [PATCH] fix: "" close buffer not silent --- lua/rustaceanvim/executors/termopen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/rustaceanvim/executors/termopen.lua b/lua/rustaceanvim/executors/termopen.lua index d18d62ac..6616fbcf 100644 --- a/lua/rustaceanvim/executors/termopen.lua +++ b/lua/rustaceanvim/executors/termopen.lua @@ -27,7 +27,7 @@ local M = { ui.resize(false, '-5') -- close the buffer when escape is pressed :) - vim.api.nvim_buf_set_keymap(latest_buf_id, 'n', '', ':q', { noremap = true }) + vim.api.nvim_buf_set_keymap(latest_buf_id, 'n', '', 'q', { noremap = true }) -- run the command vim.fn.termopen(full_command)