From 85a87d1346ac109693128da7a5afcb9aa753752b Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Tue, 30 Jun 2026 09:37:36 -0400 Subject: nvim quit all buffers --- nvf/nvf.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nvf/nvf.nix b/nvf/nvf.nix index 30d7b2b..1c9b64f 100644 --- a/nvf/nvf.nix +++ b/nvf/nvf.nix @@ -4,6 +4,12 @@ syntaxHighlighting = true; binds.whichKey.enable = true; + luaConfigPost = '' + -- `:q` quits all buffers + vim.cmd([[cnoreabbrev q (getcmdtype() == ':' && getcmdline() ==# 'q') ? 'qa' : 'q']]) + vim.cmd([[cnoreabbrev q! (getcmdtype() == ':' && getcmdline() ==# 'q!') ? 'qa!' : 'q!']]) + ''; + # ui theme = { enable = true; -- cgit v1.3.1