feat: add vale ini and reorganize dotfiles

This commit is contained in:
Youwen Wu 2025-01-25 15:18:33 -08:00
parent a91aa4c762
commit 41e08ab187
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
6 changed files with 74 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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"