fix: nvim-pager close all pages on q

This commit is contained in:
2026-02-17 08:55:41 +00:00
parent a7cb54d04c
commit 7490ef2fe9

View File

@@ -1,7 +1,7 @@
{pkgs, ...}: {pkgs, ...}:
pkgs.writeShellScriptBin "pager" '' pkgs.writeShellScriptBin "pager" ''
nvim -R -u NONE \ nvim -R -u NONE \
-c 'nnoremap q :q!<CR>' \ -c 'nnoremap q :qa!<CR>' \
-c 'set buftype=nofile nowrap' \ -c 'set buftype=nofile nowrap' \
-c 'set runtimepath^=${pkgs.vimPlugins.vim-plugin-AnsiEsc}' \ -c 'set runtimepath^=${pkgs.vimPlugins.vim-plugin-AnsiEsc}' \
-c 'runtime! plugin/*.vim' \ -c 'runtime! plugin/*.vim' \