summaryrefslogtreecommitdiff
path: root/dot_config/nvim/fnl/plugins/lsp/attach.fnl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_config/nvim/fnl/plugins/lsp/attach.fnl36
1 files changed, 18 insertions, 18 deletions
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 (.. :<localleader><localleader> (. $ 1))) ll)]
(vim.api.nvim_buf_set_option b :omnifunc :v:lua.vim.lsp.omnifunc)
(recc :which-key :add
- (tbl (insert ll
- (tbl :<leader>F #(vim.lsp.buf.format {:async true}) &
- :desc "run format")) &
+ (· (insert ll
+ (· :<leader>F #(vim.lsp.buf.format {:async true}) &
+ :desc "run format")) &
:buffer b))))