diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-16 01:40:16 +0200 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-16 01:40:16 +0200 |
| commit | 6cb31718df762c6ebf764986074f08b19d6f82f8 (patch) | |
| tree | 4bc60c9d94de082914ea9ab2d488114caff4edd4 /fnl/config/lsp/mason-lspconfig.fnl | |
| parent | 68c0f6bab06ea587b9b258d1ad3b0c9870bc163f (diff) | |
Refactor loading of plugins with packer
Diffstat (limited to 'fnl/config/lsp/mason-lspconfig.fnl')
| -rw-r--r-- | fnl/config/lsp/mason-lspconfig.fnl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fnl/config/lsp/mason-lspconfig.fnl b/fnl/config/lsp/mason-lspconfig.fnl index a2bd714..7a03ced 100644 --- a/fnl/config/lsp/mason-lspconfig.fnl +++ b/fnl/config/lsp/mason-lspconfig.fnl @@ -1,5 +1,5 @@ ;; TBD -(module config.lsp.mason-lspconfig {autoload {: util}}) +(module config.lsp.mason-lspconfig {autoload {:util :config.util}}) (def- servers [:bashls :clangd @@ -49,9 +49,9 @@ (def- opts {:ensure_installed servers :automatic_installation true}) -(util.use-config :mason-lspconfig opts) +(util.setup :mason-lspconfig opts) -(let [lspconfig (util.load-plugin :lspconfig)] +(let [lspconfig (util.prequire :lspconfig)] (each [_ server (ipairs servers)] (let [server-config (. lspconfig server)] (server-config.setup (get-server-opts server))))) |