summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkullheadx <andrew.montgomery@warpengine.ai>2026-06-30 09:37:36 -0400
committerSkullheadx <andrew.montgomery@warpengine.ai>2026-06-30 10:14:00 -0400
commit85a87d1346ac109693128da7a5afcb9aa753752b (patch)
tree45965025694d1aebbd77286df3aa490b2ec51649
parentdisable sudo local (diff)
downloadnixos-85a87d1346ac109693128da7a5afcb9aa753752b.tar.gz
nixos-85a87d1346ac109693128da7a5afcb9aa753752b.tar.bz2
nixos-85a87d1346ac109693128da7a5afcb9aa753752b.zip
nvim quit all buffers
-rw-r--r--nvf/nvf.nix6
1 files changed, 6 insertions, 0 deletions
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 <expr> q (getcmdtype() == ':' && getcmdline() ==# 'q') ? 'qa' : 'q']])
+ vim.cmd([[cnoreabbrev <expr> q! (getcmdtype() == ':' && getcmdline() ==# 'q!') ? 'qa!' : 'q!']])
+ '';
+
# ui
theme = {
enable = true;