Files
dots/home/editors/nvim/plugins/lsp/lint.nix
2025-12-01 18:24:34 +01:00

57 lines
983 B
Nix

{pkgs, ...}: {
programs.nixvim = {
extraPackages = with pkgs; [
statix
selene
eslint_d
stylelint
yamllint
sqlfluff
markdownlint-cli2
ruff
rubocop
checkstyle
golangci-lint
python312Packages.flake8
clippy
cppcheck
cmake-lint
];
plugins.lint = {
enable = true;
lintersByFt = {
bash = ["bash"];
nix = ["statix"];
lua = ["selene"];
css = ["stylelint"];
javascript = ["eslint_d"];
javascriptreact = ["eslint_d"];
typescript = ["eslint_d"];
typescriptreact = ["eslint_d"];
sql = ["sqlfluff"];
yaml = ["yamllint"];
markdown = ["markdownlint-cli2"];
python = ["ruff"];
ruby = ["rubocop"];
go = ["golangcilint"];
java = ["checkstyle"];
rust = ["clippy"];
cpp = ["cppcheck"];
cmake = ["cmakelint"];
};
};
};
}