From 4872151a219b66aa2ff67bf2eacddfaae7379ddc Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 4 Jan 2023 15:39:18 +0100 Subject: Move window picker keymap --- fnl/config/which-key.fnl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'fnl/config/which-key.fnl') diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 310f7c4..8a8c72d 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -1,5 +1,5 @@ ;; Which-key provides a pop-up meny for some key mappings. -(module config.which-key {autoload {util config.util nvim aniseed.nvim}}) +(module config.which-key {autoload {util config.util}}) (def- setup {:plugins {:marks true :registers true @@ -135,12 +135,6 @@ (def- treesitter {:name :Treesitter :p [:TSPlaygroundToggle :Playground]}) -(defn- switch-window [] - (let [window-picker (require :window-picker)] - (let [win (window-picker.pick_window)] - (if (not= win nil) - (nvim.set_current_win win))))) - (def- nmappings {:a ["Telescope lsp_document_symbols theme=dropdown" "Document Symbols"] :T treesitter @@ -152,9 +146,6 @@ :l lsp :n [:CommentNormal :Comment] :r replace - :s [(fn [] - (switch-window)) - "Switch window"] :t [:ToggleTerm :Terminal] :u [:UndotreeToggle :Undotree] :y lazy -- cgit v1.2.3-70-g09d2