diff options
| -rw-r--r-- | lua/user/keys.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/user/keys.lua b/lua/user/keys.lua index 55b7f01..02b466d 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -33,10 +33,10 @@ map("n", "<leader><CR>", "<cmd>luafile ~/.config/nvim/init.lua<CR> | :echom ('Nv map('n', 'q', function() local config = vim.api.nvim_win_get_config(0) if config.relative ~= "" then -- is_floating_window? - return ":close<CR>" + return ":silent! close!<CR>" elseif vim.o.buftype == 'quickfix' then - return ":close<CR>" + return ":quit<CR>" elseif vim.o.buftype == 'help' then return ":close<CR>" |
