summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <mike.vink@stater.nl>2023-05-10 16:20:20 +0200
committerMike Vink <mike.vink@stater.nl>2023-05-10 16:20:20 +0200
commite310b7f610d9f368a529c963c67a4b605c39ff43 (patch)
treed0aed3ba84ed26916eb8371a8c454ce633f3ea1c
parent69126b821f73124527d520d301155f4fc80684ce (diff)
don't shadow c-p dirvishHEADmaster
-rw-r--r--fnl/conf/events.fnl4
-rw-r--r--fnl/conf/init.fnl2
2 files changed, 5 insertions, 1 deletions
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 <buffer> <C-p>")
+ :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<cr>")
(map :n "[x" ":lprevious<cr>")
(map :n "]x" ":lnext<cr>")
- (map :n :<c-p> ":Telescope find_files<cr>")
+ (map :n :<c-p> ":Telescope find_files<cr>" {:noremap true})
(map :n "`<Backspace>" ":FocusDispatch ")
(map :n "`k" ":K9s ")
(map :n "`s" ":Ssh ")