diff options
| -rw-r--r-- | fnl/conf/events.fnl | 4 | ||||
| -rw-r--r-- | fnl/conf/init.fnl | 2 |
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 ") |
