Files
Neve/config/languages/nvim-lint.nix
2025-02-06 17:45:39 +02:00

31 lines
686 B
Nix

{
lib,
config,
...
}: {
options = {
nvim-lint.enable = lib.mkEnableOption "Enable nvim-lint module";
};
config = lib.mkIf config.nvim-lint.enable {
plugins.lint = {
enable = true;
lintersByFt = {
c = ["cpplint"];
cpp = ["cpplint"];
go = ["golangci-lint"];
nix = ["statix"];
lua = ["selene"];
python = ["flake8"];
javascript = ["eslint_d"];
javascriptreact = ["eslint_d"];
typescript = ["eslint_d"];
typescriptreact = ["eslint_d"];
json = ["jsonlint"];
java = ["checkstyle"];
haskell = ["hlint"];
bash = ["shellcheck"];
};
};
};
}