From 531de7d6d78c4c15f97c4a08c5606abcfdb7e699 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 17 Jul 2022 19:08:57 +0200 Subject: Update which-key format and switch win --- fnl/config/which-key.fnl | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'fnl/config') diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 65252da..e78f038 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -75,7 +75,7 @@ "Document Diagnostics"] :w ["Telescope lsp_workspace_diagnostics" "Workspace Diagnostics"] - :f ["lua vim.lsp.buf.formatting()" :Format] + :f ["lua vim.lsp.buf.format { async = true }" :Format] :i [:LspInfo :Info] :I [:LspInstallInfo "Installer Info"] :j ["lua vim.lsp.diagnostic.goto_next()" "Next Diagnostic"] @@ -86,15 +86,12 @@ :s ["Telescope lsp_document_symbols" "Document Symbols"] :S ["Telescope lsp_dynamic_workspace_symbols" "Workspace Symbols"]} - :s {:name :Search - :b ["Telescope git_branches" "Checkout branch"] - :c ["Telescope colorscheme" :Colorscheme] - :h ["Telescope help_tags" "Find Help"] - :M ["Telescope man_pages" "Man Pages"] - :r ["Telescope oldfiles" "Open Recent File"] - :R ["Telescope registers" :Registers] - :k ["Telescope keymaps" :Keymaps] - :C ["Telescope commands" :Commands]} + :s [(fn switch-window [] + (let [window-picker (require :window-picker)] + (let [win (window-picker.pick_window)] + (if (not= win nil) + (nvim.set_current_win win))))) + "Switch window"] :o {:name :Orgmode :a ["lua require('orgmode').action('agenda.prompt')" "Open agenda prompt"] -- cgit v1.2.3-70-g09d2