From ad2c268442300514ef18420f6b69f9053cb448cf Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 6 Apr 2022 22:37:38 +0200 Subject: feat(null ls): add fnl config --- fnl/config/lsp/null-ls.fnl | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 fnl/config/lsp/null-ls.fnl (limited to 'fnl') diff --git a/fnl/config/lsp/null-ls.fnl b/fnl/config/lsp/null-ls.fnl new file mode 100644 index 0000000..b2bc1e2 --- /dev/null +++ b/fnl/config/lsp/null-ls.fnl @@ -0,0 +1,29 @@ +;; Adds LSP diagnostics and formatting. +(module config.lsp.null-ls + {autoload {util util}}) + +(let [(ok? null-ls) util.load-plugin :null-ls] + (when ok? + (let [formatting null_ls.builtins.formatting diagnostics null_ls.builtins.diagnostics]) + (null-ls.setup + {:debug false + :sources [ + (diagnostics.flake8) + (diagnostics.golangci_lint) + (diagnostics.jsonlint) + (diagnostics.shellcheck) + (diagnostics.yamllint) + (formatting.black.with { extra_args [ "--fast" ] }) + (formatting.erlfmt) + (formatting.fourmolu) + (formatting.gofmt) + (formatting.goimports) + (formatting.nixfmt) + (formatting.prettier.with { + extra_args [ "--no-semi" "--single-quote" "--jsx-single-quote" ] + }) + (formatting.rustfmt) + (formatting.shfmt) + (formatting.sqlformat) + (formatting.stylua) + (formatting.terraform_fmt)]}))) -- cgit v1.2.3-70-g09d2