clj-kondo

schadocalex 2026-03-11T16:31:45.219569Z

Hi there! Considering the following use case:

(defn get-data [{:keys [data]}]
  data)

(defmacro $ [op arg1 & args]
  `(~op ~arg1))

($ get-data {:| })
;      cursor ^
Is there a way to write a hook which would keep autocompletion for the args (keys) working? (Same as with a direct call to get-data). I haven't found a solution yet. I'm using Calva in VSCode, not sure whether that matters. Thanks!

2026-03-11T16:38:44.786989Z

i think this is a question for #lsp

👍 1
schadocalex 2026-03-11T17:19:19.450819Z

Thanks I've posted there.