about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/nvim/plgs/lsp/servers/servers/ltex.nix
blob: 3224bc4186192a7f528e354134397564a997cbe8 (plain) (blame)
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
{...}: {
  programs.nixvim.plugins.lsp.servers = {
    ltex = let
      filetypes = [
        "java"
        "cpp"
        "shell"
        "bash"

        "bibtex"
        "context"
        "context.tex"
        "latex"
        "tex"

        "markdown"
        "org"
        "restructuredtext"
        "rsweave"

        "git-commit"
        "gitcommit"

        "mail"
      ];
    in {
      enable = true;
      inherit filetypes;
      settings = {
        enabled = filetypes;
        completionEnabled = false;
        language = "en-CA";
        additionalRules = {
          enablePickyRules = true;
        };
      };
    };
  };
}