Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 76442eb

Browse files
null-ls: set config files for markdownlint and alex
Configuration files for lint and diagnostic tools defined in .config/astronvim-user/tool-config/ directory Use vim.fn.expand to use a relative path from the user home directory to the specific configuration file Set filetypes for tools
1 parent 0698d24 commit 76442eb

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

plugins/null-ls.lua

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ return {
1212
-- null_ls.builtins.formatting.stylua,
1313
-- null_ls.builtins.formatting.prettier,
1414

15+
null_ls.builtins.diagnostics.alex.with {
16+
-- pass arguments to modify/override the null-ls builtin configuration
17+
filetypes = { "markdown" },
18+
extra_args = { "--config-path", vim.fn.expand "~/.config/astronvim-user/tool-config/alexrc.yaml" },
19+
},
1520
null_ls.builtins.formatting.markdownlint.with {
1621
-- pass arguments to modify/override the null-ls builtin configuration
17-
extra_args = {
18-
"--config-path",
19-
vim.fn.expand "~/.config/astronvim-config/tool-config/markdownlint.yaml",
20-
},
22+
filetypes = { "markdown" },
23+
extra_args = { "--config-path", vim.fn.expand "~/.config/astronvim-user/tool-config/markdownlint.yaml" },
2124
},
2225
}
2326
return config -- return final config table

0 commit comments

Comments
 (0)