summaryrefslogtreecommitdiffstats
path: root/nvf
diff options
context:
space:
mode:
Diffstat (limited to 'nvf')
-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;