From a688a66c4f9cbf1f88052eb32e476d53e158773b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 10 Oct 2022 23:31:56 +0200 Subject: Remove nvim-tree command in which-key --- fnl/config/which-key.fnl | 1 - 1 file changed, 1 deletion(-) (limited to 'fnl/config/which-key.fnl') diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 1d196fa..48a39be 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -137,7 +137,6 @@ (def- nmappings {:a ["Telescope lsp_document_symbols" "Document Symbols"] :c [:Bdelete! "Close Buffer"] - :e [:NvimTreeToggle :Explorer] :f find :g git :h [:Alpha :Alpha] -- cgit v1.2.3-70-g09d2 From 34d5c56462ddf6aef4c754ba39e650fe540c67c3 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 11 Oct 2022 00:25:05 +0200 Subject: Remap neogit to mmappings --- fnl/config/which-key.fnl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fnl/config/which-key.fnl') diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 48a39be..8e89095 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -50,9 +50,10 @@ "Harpoon Prev"] :t ["Telescope harpoon marks" "Search Files"] :v ["lua vim.lsp.buf.rename()" :Rename] - :p ["SaveSession" "Save Session"] + :p [:SaveSession "Save Session"] :r ["lua require('harpoon.ui').toggle_quick_menu()" - "Harpoon UI"]}) + "Harpoon UI"] + :n [:Neogit :Neogit]}) (def- nopts {:mode :n :prefix : @@ -78,8 +79,8 @@ :C ["Telescope commands" :Commands]}) (def- git {:name :Git - :d ["DiffviewOpen" "Diffview"] - :D ["DiffviewFileHistory" "DiffviewFileHistory"] + :d ["Gitsigns diffthis HEAD" :Diff] + :D [:DiffviewFileHistory :DiffviewFileHistory] :j ["lua require 'gitsigns'.next_hunk()" "Next Hunk"] :k ["lua require 'gitsigns'.prev_hunk()" "Prev Hunk"] :l ["lua require 'gitsigns'.blame_line()" :Blame] @@ -92,8 +93,7 @@ :o ["Telescope git_status" "Open changed file"] :b ["Telescope git_branches" "Checkout branch"] :c ["Telescope git_commits" "Checkout commit"] - :d ["Gitsigns diffthis HEAD" :Diff] - :n [:Neogit :Neogit]}) + :d ["Gitsigns diffthis HEAD" :Diff]}) (def- lsp {:name :LSP :a ["lua vim.lsp.buf.code_action()" "Code Action"] -- cgit v1.2.3-70-g09d2 From 69483c9b53e8d14e7c4398380ac64b2ea8c27887 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 11 Oct 2022 00:42:44 +0200 Subject: Add dropdown theme on most telescope commands --- fnl/config/which-key.fnl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'fnl/config/which-key.fnl') diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 8e89095..148ee29 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -40,7 +40,7 @@ :b ["lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{sort_lastused = true, initial_mode = 'normal', previewer = false})" "Switch buffers"] :d [:TroubleToggle :Trouble] - :D ["Telescope diagnostics" "Telescope diagnostics"] + :D ["Telescope diagnostics theme=dropdown" "Telescope diagnostics"] :f ["lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})" "Find files"] :g ["Telescope live_grep theme=ivy" "Find text"] @@ -48,7 +48,7 @@ "Harpoon Next"] :h ["lua require('harpoon.ui').nav_prev()" "Harpoon Prev"] - :t ["Telescope harpoon marks" "Search Files"] + :t ["Telescope harpoon marks theme=dropdown" "Search Files"] :v ["lua vim.lsp.buf.rename()" :Rename] :p [:SaveSession "Save Session"] :r ["lua require('harpoon.ui').toggle_quick_menu()" @@ -63,17 +63,17 @@ :nowait true}) (def- find {:name :Find - :b ["Telescope git_branches" "Checkout branch"] - :c ["Telescope colorscheme" :Colorscheme] + :b ["Telescope git_branches theme=dropdown" "Checkout branch"] + :c ["Telescope colorscheme theme=dropdown" :Colorscheme] :f ["lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})" "Find files"] :t ["Telescope live_grep theme=ivy" "Find text"] - :s ["Telescope grep_string" "Find String"] + :s ["Telescope grep_string theme=dropdown" "Find String"] :h ["Telescope help_tags" :Help] :H ["Telescope highlights" :Highlights] :l ["Telescope resume" "Last Search"] :M ["Telescope man_pages" "Man Pages"] - :r ["Telescope oldfiles" "Recent File"] + :r ["Telescope oldfiles theme=dropdown" "Recent File"] :R ["Telescope registers" :Registers] :k ["Telescope keymaps" :Keymaps] :C ["Telescope commands" :Commands]}) @@ -90,9 +90,9 @@ :s ["lua require 'gitsigns'.stage_hunk()" "Stage Hunk"] :u ["lua require 'gitsigns'.undo_stage_hunk()" "Undo Stage Hunk"] - :o ["Telescope git_status" "Open changed file"] - :b ["Telescope git_branches" "Checkout branch"] - :c ["Telescope git_commits" "Checkout commit"] + :o ["Telescope git_status theme=dropdown" "Open changed file"] + :b ["Telescope git_branches theme=dropdown" "Checkout branch"] + :c ["Telescope git_commits theme=dropdown" "Checkout commit"] :d ["Gitsigns diffthis HEAD" :Diff]}) (def- lsp {:name :LSP @@ -134,7 +134,7 @@ (if (not= win nil) (nvim.set_current_win win))))) -(def- nmappings {:a ["Telescope lsp_document_symbols" +(def- nmappings {:a ["Telescope lsp_document_symbols theme=dropdown" "Document Symbols"] :c [:Bdelete! "Close Buffer"] :f find -- cgit v1.2.3-70-g09d2