diff options
| author | 2024-07-26 22:39:32 +0200 | |
|---|---|---|
| committer | 2024-07-26 22:39:32 +0200 | |
| commit | c3c2a2f26ba27574e7b4fabd8be150c057346131 (patch) | |
| tree | 76345040016b07deeb2cc4be49d64f80a6d5c90c /dot_config/nvim/fnl/plugins/lsp/init.fnl | |
| parent | nvim/mdquote: fix negative start line bug (diff) | |
nvim: rename tbl to mixed-table, import it as "·"
I swear I'm not succumbing to the APL, I just couldn't find a better
symbol.
Diffstat (limited to '')
| -rw-r--r-- | dot_config/nvim/fnl/plugins/lsp/init.fnl | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/dot_config/nvim/fnl/plugins/lsp/init.fnl b/dot_config/nvim/fnl/plugins/lsp/init.fnl index 10685d2..67b2b66 100644 --- a/dot_config/nvim/fnl/plugins/lsp/init.fnl +++ b/dot_config/nvim/fnl/plugins/lsp/init.fnl @@ -1,4 +1,4 @@ -(import-macros {: tbl : recc} :toast.macros) +(import-macros {:mixed-table · : recc} :toast.macros) (fn gopts [plist] {:clangd {} @@ -16,18 +16,18 @@ (local attach (require :plugins.lsp.attach)) (local caps (require :plugins.lsp.capabilities)) -[(tbl :neovim/nvim-lspconfig & - :config (fn [_ opts] - (each [k v (pairs opts)] - (set v.on_attach (or attach v.on_attach)) - (when (= :table (type caps)) - (set v.capabilities (or v.capabilities caps))) - (let [s (. (require :lspconfig) k) - c (or v.cmd s.document_config.default_config.cmd)] - (when (not= 0 (vim.fn.executable (. c 1))) - (s.setup v))))) - :opts (fn [] - (let [plist (fn [...] - (local p (recc :lspconfig.util :root_pattern ...)) - #(p $))] - (gopts plist))))] +[(· :neovim/nvim-lspconfig & + :config (fn [_ opts] + (each [k v (pairs opts)] + (set v.on_attach (or attach v.on_attach)) + (when (= :table (type caps)) + (set v.capabilities (or v.capabilities caps))) + (let [s (. (require :lspconfig) k) + c (or v.cmd s.document_config.default_config.cmd)] + (when (not= 0 (vim.fn.executable (. c 1))) + (s.setup v))))) + :opts (fn [] + (let [plist (fn [...] + (local p (recc :lspconfig.util :root_pattern ...)) + #(p $))] + (gopts plist))))] |
