mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-05 06:44:33 +02:00
plugins/languages: move to by-name
This commit is contained in:
parent
9d323f3ec7
commit
b1d0959bc9
71 changed files with 19 additions and 36 deletions
|
@ -1,71 +0,0 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.lint.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.lint = {
|
||||
enable = true;
|
||||
|
||||
lintersByFt = {
|
||||
text = [ "vale" ];
|
||||
json = [ "jsonlint" ];
|
||||
markdown = [ "vale" ];
|
||||
rst = [ "vale" ];
|
||||
ruby = [ "ruby" ];
|
||||
janet = [ "janet" ];
|
||||
inko = [ "inko" ];
|
||||
# As of 2024-03-27, pkgs.graalvm-ce (a dependency of pkgs.clj-kondo) is broken on x86_64-darwin
|
||||
# TODO: re-enable this test when fixed
|
||||
# clojure = ["clj-kondo"];
|
||||
dockerfile = [ "hadolint" ];
|
||||
terraform = [ "tflint" ];
|
||||
};
|
||||
linters = {
|
||||
phpcs.args = [
|
||||
"-q"
|
||||
"--report=json"
|
||||
"-"
|
||||
];
|
||||
};
|
||||
customLinters = {
|
||||
foo = {
|
||||
cmd = "foo_cmd";
|
||||
stdin = true;
|
||||
append_fname = false;
|
||||
args = [ ];
|
||||
stream = "stderr";
|
||||
ignore_exitcode = false;
|
||||
env = {
|
||||
FOO = "bar";
|
||||
};
|
||||
parser = ''
|
||||
require('lint.parser').from_pattern(pattern, groups, severity_map, defaults, opts)
|
||||
'';
|
||||
};
|
||||
foo2 = {
|
||||
cmd = "foo2_cmd";
|
||||
parser = ''
|
||||
require('lint.parser').from_pattern(pattern, groups, severity_map, defaults, opts)
|
||||
'';
|
||||
};
|
||||
bar.__raw = ''
|
||||
function()
|
||||
return {
|
||||
cmd = "foo_cmd",
|
||||
stdin = true,
|
||||
append_fname = false,
|
||||
args = {},
|
||||
stream = "stderr",
|
||||
ignore_exitcode = false,
|
||||
env = {
|
||||
["FOO"] = "bar",
|
||||
},
|
||||
parser = require('lint.parser').from_pattern(pattern, groups, severity_map, defaults, opts),
|
||||
}
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue