neovim-flake/modules/plugins/diagnostics/nvim-lint/config.nix

21 lines
406 B
Nix
Raw Normal View History

2025-02-01 07:31:29 +03:00
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.diagnostics.nvim-lint;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = ["nvim-lint"];
pluginRC.nvim-lint = entryAnywhere ''
2025-03-22 17:57:21 +01:00
require("lint").linters_by_ft = ${toLuaObject cfg.linters_by_ft}
2025-02-01 07:31:29 +03:00
'';
};
};
}