From c3c2a2f26ba27574e7b4fabd8be150c057346131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Fri, 26 Jul 2024 22:39:32 +0200 Subject: =?UTF-8?q?nvim:=20rename=20tbl=20to=20mixed-table,=20import=20it?= =?UTF-8?q?=20as=20"=C2=B7"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I swear I'm not succumbing to the APL, I just couldn't find a better symbol. --- dot_config/nvim/fnl/plugins/lsp/attach.fnl | 36 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'dot_config/nvim/fnl/plugins/lsp/attach.fnl') diff --git a/dot_config/nvim/fnl/plugins/lsp/attach.fnl b/dot_config/nvim/fnl/plugins/lsp/attach.fnl index 1f23015..83a68aa 100644 --- a/dot_config/nvim/fnl/plugins/lsp/attach.fnl +++ b/dot_config/nvim/fnl/plugins/lsp/attach.fnl @@ -1,31 +1,31 @@ -(import-macros {: tbl : recc} :toast.macros) +(import-macros {:mixed-table · : recc} :toast.macros) (local {: assoc : map} (require :toast.core)) (local {: insert} (require :toast.table)) (fn [c b] (let [lsp vim.lsp lbf lsp.buf - ll [(tbl "" & :group :+lsp) - (tbl :w & :group :+workspace) + ll [(· "" & :group :+lsp) + (· :w & :group :+workspace) - (tbl :D lbf.declaration & :desc "goto declaration") - (tbl :d lbf.definition & :desc "goto definition") - (tbl :k lbf.hover & :desc "hover") - (tbl :K lbf.signature_help & :desc "signature help") - (tbl :i lbf.implementation & :desc "goto implementation") - (tbl :t lbf.type_definition & :desc "goto type definition") - (tbl :r lbf.rename & :desc "rename") - (tbl :c lbf.code_action & :desc "code action") - (tbl :R lbf.reference & :desc "list references") + (· :D lbf.declaration & :desc "goto declaration") + (· :d lbf.definition & :desc "goto definition") + (· :k lbf.hover & :desc "hover") + (· :K lbf.signature_help & :desc "signature help") + (· :i lbf.implementation & :desc "goto implementation") + (· :t lbf.type_definition & :desc "goto type definition") + (· :r lbf.rename & :desc "rename") + (· :c lbf.code_action & :desc "code action") + (· :R lbf.reference & :desc "list references") - (tbl :wa lbf.add_workspace_folder & :desc "add folder") - (tbl :wr lbf.remove_workspace_folder & :desc "remove folder") - (tbl :wl #(print (vim.inspect (lbf.list_workspace_folders))) & + (· :wa lbf.add_workspace_folder & :desc "add folder") + (· :wr lbf.remove_workspace_folder & :desc "remove folder") + (· :wl #(print (vim.inspect (lbf.list_workspace_folders))) & :desc "list folders")] ll (map #(assoc $ 1 (.. : (. $ 1))) ll)] (vim.api.nvim_buf_set_option b :omnifunc :v:lua.vim.lsp.omnifunc) (recc :which-key :add - (tbl (insert ll - (tbl :F #(vim.lsp.buf.format {:async true}) & - :desc "run format")) & + (· (insert ll + (· :F #(vim.lsp.buf.format {:async true}) & + :desc "run format")) & :buffer b)))) -- cgit v1.2.3