From 18635f184ed3e2276cf5cf7d93ebfa7f5c3350b2 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 5 Jan 2023 02:52:48 +0100 Subject: Update lsp --- fnl/config/which-key.fnl | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 8a8c72d..eab6583 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -15,8 +15,6 @@ :popup_mappings {:scroll_down : :scroll_up :} :window {:border :rounded :position :bottom - :margin [1 0 1 0] - :padding [2 2 2 2] :winblend 0} :layout {:height {:min 4 :max 25} :width {:min 20 :max 50} @@ -62,7 +60,7 @@ :nowait true}) (def- find - {:name :Find + {:name :find :C ["Telescope commands theme=dropdown" :Commands] :H ["Telescope highlights" :Highlights] :R ["Telescope registers theme=dropdown" :Registers] @@ -81,12 +79,12 @@ :s [:SearchSession "Find Session"] :t ["Telescope live_grep theme=dropdown" "Find text"]}) -(def- diagnostics {:name :Diagnostics - :d [:TroubleToggle :Trouble] - :D ["Telescope diagnostics theme=dropdown" +(def- diagnostics {:name :diagnostics + :t [:TroubleToggle :Trouble] + :g ["Telescope diagnostics theme=dropdown" "Telescope diagnostics"]}) -(def- git {:name :Git +(def- git {:name :git :R ["lua require 'gitsigns'.reset_buffer()" "Reset Buffer"] :b ["Telescope git_branches theme=dropdown" "Checkout branch"] @@ -105,30 +103,18 @@ "Undo Stage Hunk"]}) (def- lsp - {:name :LSP + {:name :lsp :S ["Telescope lsp_dynamic_workspace_symbols" "Workspace Symbols"] :a ["lua vim.lsp.buf.code_action()" "Code Action"] :f ["lua vim.lsp.buf.format { async = true }" :Format] :i [:LspInfo :Info] :l ["lua vim.lsp.codelens.run()" "CodeLens Action"] - :m [:Mason :Mason] :r ["lua vim.lsp.buf.rename()" :Rename] :s ["Telescope lsp_document_symbols" "Document Symbols"]}) -(def- lazy {:name :Lazy - :C ["Lazy check" :Check] - :c ["Lazy clean" :Clean] - :d ["Lazy debug" :Debug] - :h ["Lazy home" :Home] - :i ["Lazy install" :Install] - :l ["Lazy log" :Log] - :p ["Lazy profile" :Profile] - :s ["Lazy sync" :Sync] - :u ["Lazy update" :Update]}) - -(def- replace {:name :Replace - :f [:ReplaceInBuf "Replace Buffer"] +(def- replace {:name :replace + :f [:ReplaceInBuf "Replace in Buffer"] :r [:Replace :Replace] :w [:ReplaceWord "Replace Word"]}) @@ -139,16 +125,17 @@ "Document Symbols"] :T treesitter : [:BufDel "Close Buffer"] - :d diagnostics + :j diagnostics :f find :g git :h [:ColorizerToggle :Colorizer] :l lsp :n [:CommentNormal :Comment] + :m [:Mason :Mason] :r replace :t [:ToggleTerm :Terminal] :u [:UndotreeToggle :Undotree] - :y lazy + :y ["Lazy home" :Home] :z [:ZenMode "Zen Mode"]}) (def- vopts {:mode :v -- cgit v1.2.3-70-g09d2