From e310b7f610d9f368a529c963c67a4b605c39ff43 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Wed, 10 May 2023 16:20:20 +0200 Subject: don't shadow c-p dirvish --- fnl/conf/events.fnl | 4 ++++ fnl/conf/init.fnl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fnl/conf/events.fnl b/fnl/conf/events.fnl index ef374b7..00d75d4 100644 --- a/fnl/conf/events.fnl +++ b/fnl/conf/events.fnl @@ -26,3 +26,7 @@ :callback (fn [] (vim.cmd :stopinsert)) :group "conf#events"}) + +(event [:FileType] {:pattern [:dirvish] + :callback #(vim.cmd "silent! unmap ") + :group "conf#events"}) diff --git a/fnl/conf/init.fnl b/fnl/conf/init.fnl index 8a6bce1..4496504 100644 --- a/fnl/conf/init.fnl +++ b/fnl/conf/init.fnl @@ -28,7 +28,7 @@ (map :n "]q" ":cnext") (map :n "[x" ":lprevious") (map :n "]x" ":lnext") - (map :n : ":Telescope find_files") + (map :n : ":Telescope find_files" {:noremap true}) (map :n "`" ":FocusDispatch ") (map :n "`k" ":K9s ") (map :n "`s" ":Ssh ") -- cgit v1.2.3