summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/null-ls.fnl
blob: 7b810c8d18f4fd3066935df90c528e2f53e3570d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;; Adds LSP diagnostics and formatting.
(module config.lsp.null-ls {autoload {util config.util}})

(let [null-ls (util.prequire :null-ls)]
  (let [formatting null-ls.builtins.formatting
        diagnostics null-ls.builtins.diagnostics]
    (null-ls.setup {:debug false
                    :sources [diagnostics.ruff
                              diagnostics.jsonlint
                              diagnostics.shellcheck
                              diagnostics.sqlfluff
                              diagnostics.gitlint
                              diagnostics.hadolint
                              diagnostics.cpplint
                              diagnostics.yamllint
                              formatting.ruff
                              formatting.fnlfmt
                              (formatting.prettier.with {:extra_args [:--no-semi
                                                                      :--single-quote
                                                                      :--jsx-single-quote]})
                              formatting.rustfmt
                              formatting.shfmt
                              formatting.sqlfluff
                              formatting.stylua
                              formatting.terraform_fmt]})))