diff --git a/reference/users/youwen/config/vale/.vale.ini b/reference/users/youwen/config/vale/.vale.ini new file mode 100644 index 0000000..6afc6ca --- /dev/null +++ b/reference/users/youwen/config/vale/.vale.ini @@ -0,0 +1,18 @@ +StylesPath = styles + +MinAlertLevel = suggestion +Vocab = Youwen, Developer + +Packages = proselint + +[*.{md,typ,tex}] +# ^ This section applies to only Markdown files. +# +# You can change (or add) file extensions here +# to apply these settings to other file types. +# +# For example, to apply these settings to both +# Markdown and reStructuredText: +# +# [*.{md,rst}] +BasedOnStyles = Vale,proselint diff --git a/reference/users/youwen/config/vale/styles/config/vocabularies/Developer/accept.txt b/reference/users/youwen/config/vale/styles/config/vocabularies/Developer/accept.txt new file mode 100644 index 0000000..073a103 --- /dev/null +++ b/reference/users/youwen/config/vale/styles/config/vocabularies/Developer/accept.txt @@ -0,0 +1,16 @@ +[Nn]eovim +(?i)formatter[s] +LSP[s] +(?i)distro[s] +(?i)nixvim +(?i)vim +(?i)nixcats +(?i)luarocks +(?i)config +(?i)keybind[s] +(?i)spicetify +(?i)stylix +(?i)hyprland +(?i)wayland +(?i)nvidia +[Ll]inux diff --git a/reference/users/youwen/config/vale/styles/config/vocabularies/Youwen/accept.txt b/reference/users/youwen/config/vale/styles/config/vocabularies/Youwen/accept.txt new file mode 100644 index 0000000..9be0fd7 --- /dev/null +++ b/reference/users/youwen/config/vale/styles/config/vocabularies/Youwen/accept.txt @@ -0,0 +1,21 @@ +(?i)discriminant +(?i)equivalent +(?i)typo +(?i)hence +(?i)wish +(?i)matrices +(?i)phone +(?i)oops +(?i)am +(?i)pm +(?i)alright +(?i)spend +(?i)a lot +(?i)hyperextensible +Spotify +[Yy]ouwen +[Aa]nanth +[Ww]arren +(?i)kaitotlex +Razer +(?i)asahi diff --git a/reference/users/youwen/vimkeys.w3m b/reference/users/youwen/config/vimkeys.w3m similarity index 100% rename from reference/users/youwen/vimkeys.w3m rename to reference/users/youwen/config/vimkeys.w3m diff --git a/reference/users/youwen/hm.nix b/reference/users/youwen/hm.nix index 380cef9..84054f6 100644 --- a/reference/users/youwen/hm.nix +++ b/reference/users/youwen/hm.nix @@ -65,6 +65,24 @@ addKeysToAgent = "yes"; }; + xdg.configFile."vale" = { + source = ./config/vale; + recursive = true; + }; + + home.file.".local/share/vale/styles/proselint" = { + source = "${ + pkgs.fetchFromGitHub { + owner = "errata-ai"; + repo = "proselint"; + rev = "v0.3.4"; + hash = "sha256-iujKf+xc/RDqw4eC/nzpMsHWvwey6U5sjD2yHSiQxP4="; + sparseCheckout = [ "proselint" ]; + } + }/proselint"; + recursive = true; + }; + # text/html; ~/.mutt/view_attachment.sh %s html; test=test -n "$DISPLAY" home.file.".mailcap".text = '' text/html; ${pkgs.w3m}/bin/w3m %s; nametemplate=%s.html; needsterminal diff --git a/reference/users/youwen/neomutt.nix b/reference/users/youwen/neomutt.nix index a1c9aec..2cad6ad 100644 --- a/reference/users/youwen/neomutt.nix +++ b/reference/users/youwen/neomutt.nix @@ -119,7 +119,7 @@ in ''; home.file.".w3m/keymap".text = - (builtins.readFile ./vimkeys.w3m) + (builtins.readFile ./config/vimkeys.w3m) + '' keymap R COMMAND "READ_SHELL '${pkgs.rdrview}/bin/rdrview $W3M_URL -H 2> /dev/null 1> /tmp/readable.html' ; LOAD /tmp/readable.html" keymap f COMMAND "RESHAPE ; LINK_BEGIN ; GOTO_LINK"