aboutsummaryrefslogtreecommitdiffstats
path: root/home/vale.nix
blob: 79712eaa691c5e4b4ce0b8afcb084c80a0aca9f3 (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
{ inputs, pkgs, ... }:
{

  xdg.configFile."/home/petri/.config/vale/.vale.ini".text = ''
    MinAlertLevel = suggestion
    StylesPath = ${pkgs.valeStyles.microsoft}/share/vale/styles
    Packages = Microsoft
    # Vocab = myterms does not work because expects styles to be in the same folder

    [asciidoctor]
    experimental = YES
    attribute-missing = drop

    [*.adoc]
    BasedOnStyles = Vale, Microsoft

    [*.{md,rst}]
    BasedOnStyles = Vale, Microsoft
  '';

  xdg.configFile."/home/petri/.config/vale/config/vocabularies/myterms/accept.txt".text = ''
    Relesoft
    ERTMS
    ETCS
    YAML
    TOML
    FTIA
    GRK
    EULYNX
  '';
}