summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/null-ls.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-12 21:15:44 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-12 21:15:44 +0200
commit82779fc7fbb42f5f97bf5840d3248ad84a63c095 (patch)
tree7d8327aa0f7eeea7fed99b69c554eb19c671ef29 /fnl/config/lsp/null-ls.fnl
parent4ec6fb5118f95f00dbacdcf0470e0f9fffd86abc (diff)
parentc561be2e3e71c226985640320559e3bf5e1c7034 (diff)
feat(fennel): migration
Diffstat (limited to 'fnl/config/lsp/null-ls.fnl')
-rw-r--r--fnl/config/lsp/null-ls.fnl26
1 files changed, 26 insertions, 0 deletions
diff --git a/fnl/config/lsp/null-ls.fnl b/fnl/config/lsp/null-ls.fnl
new file mode 100644
index 0000000..8a95ba9
--- /dev/null
+++ b/fnl/config/lsp/null-ls.fnl
@@ -0,0 +1,26 @@
+;; Adds LSP diagnostics and formatting.
+(module config.lsp.null-ls {autoload {util util}})
+
+(let [null-ls (util.load-plugin :null-ls)]
+ (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]})))