-
Notifications
You must be signed in to change notification settings - Fork 7
/
none-ls.nix
39 lines (37 loc) · 1.51 KB
/
none-ls.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{pkgs, ...}: {
plugins.none-ls = {
enable = pkgs.lib.mkDefault true;
sources = {
code_actions = {
statix.enable = pkgs.lib.mkDefault true;
};
diagnostics = {
stylelint.enable = pkgs.lib.mkDefault true;
statix.enable = pkgs.lib.mkDefault true;
sqlfluff.enable = pkgs.lib.mkDefault true;
rubocop.enable = pkgs.lib.mkDefault true;
pylint.enable = pkgs.lib.mkDefault true;
mypy.enable = pkgs.lib.mkDefault true;
markdownlint.enable = pkgs.lib.mkDefault true;
hadolint.enable = pkgs.lib.mkDefault true;
fish.enable = pkgs.lib.mkDefault true;
dotenv_linter.enable = pkgs.lib.mkDefault true;
deadnix.enable = pkgs.lib.mkDefault true;
trail_space.enable = pkgs.lib.mkDefault true;
};
formatting = {
stylua.enable = pkgs.lib.mkDefault true;
alejandra.enable = pkgs.lib.mkDefault true;
shfmt.enable = pkgs.lib.mkDefault true;
gofmt.enable = pkgs.lib.mkDefault true;
# Broken on Darwin https://github.com/NixOS/nixpkgs/blame/4b6a0890371976e066083789f3039c6f78af95d6/pkgs/development/tools/rubyfmt/default.nix#L81
rubyfmt.enable = pkgs.lib.mkDefault pkgs.stdenv.isLinux;
black.enable = pkgs.lib.mkDefault true;
isort.enable = pkgs.lib.mkDefault true;
prettier.enable = pkgs.lib.mkDefault true;
prettier.disableTsServerFormatter = pkgs.lib.mkDefault true;
typstfmt.enable = pkgs.lib.mkDefault true;
};
};
};
}