Skip to content

Commit b6684f2

Browse files
committed
chore(none-ls): update config
1 parent afeda5c commit b6684f2

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

lua/core/settings.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,19 @@ settings["lsp_deps"] = {
142142
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins
143143
---@type string[]
144144
settings["null_ls_deps"] = {
145+
"actionlint",
146+
"ansiblelint",
145147
"clang_format",
146148
"cmakelang",
147149
"eslint_d",
148150
"jq",
149-
"prettier",
150-
"stylua",
151-
"shellharden",
152151
"markdownlint_cli2",
153152
"mdformat",
154153
"nixpkgs-fmt",
154+
"prettier",
155+
"shellharden",
156+
"stylua",
157+
"editorconfig_checker",
155158
}
156159

157160
-- Set the Debug Adapter Protocol (DAP) clients that will be installed and configured during bootstrap here.

lua/modules/configs/completion/null-ls.lua

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ return function()
1616
-- Please set additional flags for the supported servers here
1717
-- Don't specify any config here if you are using the default one.
1818
local sources = {
19+
-- Formatters
1920
btns.formatting.clang_format.with({
2021
filetypes = { "c", "cpp", "objc", "objcpp", "cs", "cuda", "proto" },
2122
extra_args = formatter_args("clang_format"),
@@ -35,25 +36,29 @@ return function()
3536
"markdown",
3637
},
3738
}),
38-
btns.diagnostics.markdownlint_cli2.with({
39-
extra_args = { "--disable MD033" },
40-
}),
4139
btns.formatting.mdformat,
42-
btns.diagnostics.zsh,
40+
btns.formatting.shellharden,
4341
btns.formatting.alejandra,
44-
btns.diagnostics.deadnix,
45-
btns.diagnostics.statix,
46-
btns.code_actions.statix,
4742
btns.formatting.nixfmt,
4843
btns.formatting.nix_flake_fmt.with({
4944
filetypes = { "nix" },
5045
}),
5146
btns.formatting.nixpkgs_fmt.with({
5247
filetypes = { "nix" },
5348
}),
54-
btns.formatting.shellharden,
55-
-- example for changing diagnostics_format
56-
-- btns.diagnostics.shellcheck.with({ diagnostics_format = "#{m} [#{s} #{c}]" }),
49+
50+
-- Linters
51+
btns.diagnostics.markdownlint_cli2.with({
52+
extra_args = { "--disable MD033" },
53+
}),
54+
btns.diagnostics.zsh,
55+
btns.diagnostics.deadnix,
56+
btns.diagnostics.statix,
57+
btns.diagnostics.actionlint,
58+
btns.diagnostics.ansiblelint,
59+
60+
-- Code Actions
61+
btns.code_actions.statix,
5762
}
5863

5964
require("modules.utils").load_plugin("null-ls", {

0 commit comments

Comments
 (0)