diff options
-rw-r--r-- | fnl/settings/autocmds.fnl | 5 |
1 files changed, 4 insertions, 1 deletions
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 <silent> <buffer> q :close<CR>"}] + [:TextYankPost {:callback (lambda [] (vim.highlight.on_yank {:higroup :Visual :timeout 200}))}] |