diff options
Diffstat (limited to 'fnl/config/lsp/null-ls.fnl')
-rw-r--r-- | fnl/config/lsp/null-ls.fnl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/fnl/config/lsp/null-ls.fnl b/fnl/config/lsp/null-ls.fnl index 2df7a55..fd3a61d 100644 --- a/fnl/config/lsp/null-ls.fnl +++ b/fnl/config/lsp/null-ls.fnl @@ -1,7 +1,12 @@ ;; Adds LSP diagnostics and formatting. (module config.lsp.null-ls {autoload {util config.util}}) -(let [null-ls (util.prequire :null-ls)] +(def- mason-opts {:ensure_installed nil + :automatic_installation true + :automatic_setup false}) + +(let [null-ls (util.prequire :null-ls) + mason-null-ls (util.prequire :mason-null-ls)] (let [formatting null-ls.builtins.formatting diagnostics null-ls.builtins.diagnostics] (null-ls.setup {:debug false @@ -26,4 +31,5 @@ formatting.shfmt formatting.sqlfluff formatting.stylua - formatting.terraform_fmt]}))) + formatting.terraform_fmt]})) + (mason-null-ls.setup mason-opts)) |