From 81d5ef660071fc59b80ca762f0079df662218325 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 29 Sep 2023 22:09:21 +0200 Subject: Add autocmd for closing buffers with q --- fnl/settings/autocmds.fnl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fnl/settings') diff --git a/fnl/settings/autocmds.fnl b/fnl/settings/autocmds.fnl index b078718..f6d2584 100644 --- a/fnl/settings/autocmds.fnl +++ b/fnl/settings/autocmds.fnl @@ -1,6 +1,9 @@ ;; Autocommands for nvim. -(local auto-cmds [[:TextYankPost +(local auto-cmds [[:FileType + {:pattern [:qf :help :man :lspinfo] + :command "nnoremap q :close"}] + [:TextYankPost {:callback (lambda [] (vim.highlight.on_yank {:higroup :Visual :timeout 200}))}] -- cgit v1.2.3-70-g09d2