From 2a94573f54c69a9af7536586ab2c03eb88bda5e7 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 5 Jan 2024 01:50:20 +0100 Subject: Refactor --- fnl/plugins/editor/which-key.fnl | 47 ---------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 fnl/plugins/editor/which-key.fnl (limited to 'fnl/plugins/editor/which-key.fnl') diff --git a/fnl/plugins/editor/which-key.fnl b/fnl/plugins/editor/which-key.fnl deleted file mode 100644 index 962183e..0000000 --- a/fnl/plugins/editor/which-key.fnl +++ /dev/null @@ -1,47 +0,0 @@ -;; Which-key provides a pop-up menu for some key mappings. - -(local icons (require :plugins.icons)) - -(local opts {:plugins {:marks true - :registers true - :spelling {:enabled true :suggestions 20} - :presets {:operators false - :motions false - :text_objects false - :windows true - :nav true - :z true - :g true}} - :icons {:breadcrumb (. icons :guillemet) - :separator (.. (. icons :small-right-arrow) " ") - :group "+"} - :popup_mappings {:scroll_down : :scroll_up :} - :window {:border :rounded :position :bottom :winblend 0} - :layout {:height {:min 4 :max 25} - :width {:min 20 :max 50} - :spacing 3 - :align :left} - :hidden [: : : : :call :lua "^:" "^ "] - :show_help true - :triggers :auto - :disable {:filetypes [:netrw]} - :triggers_blacklist {:i [:j :k] :v [:j :k]}}) - -(local groups {:mode [:n :v] - :d {:name :+db} - :f {:name :+find} - :g {:name :+git} - :i {:name :+diffview} - :j {:name :+diagnostics} - :l {:name :+lsp} - :o {:name :+orgmode} - :r {:name :+replace} - :s {:name :+session} - :w {:name :+worktree}}) - -(fn config [] - (let [which-key (require :which-key)] - (which-key.setup opts) - (which-key.register groups))) - -{1 :folke/which-key.nvim :event :VeryLazy : config} -- cgit v1.2.3-70-g09d2