mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-31 09:58:53 -08:00
feat: add vale ini and reorganize dotfiles
This commit is contained in:
parent
a91aa4c762
commit
41e08ab187
6 changed files with 74 additions and 1 deletions
18
reference/users/youwen/config/vale/.vale.ini
Normal file
18
reference/users/youwen/config/vale/.vale.ini
Normal 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
|
|
@ -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
|
|
@ -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
|
|
@ -65,6 +65,24 @@
|
||||||
addKeysToAgent = "yes";
|
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"
|
# text/html; ~/.mutt/view_attachment.sh %s html; test=test -n "$DISPLAY"
|
||||||
home.file.".mailcap".text = ''
|
home.file.".mailcap".text = ''
|
||||||
text/html; ${pkgs.w3m}/bin/w3m %s; nametemplate=%s.html; needsterminal
|
text/html; ${pkgs.w3m}/bin/w3m %s; nametemplate=%s.html; needsterminal
|
||||||
|
|
|
@ -119,7 +119,7 @@ in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
home.file.".w3m/keymap".text =
|
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 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"
|
keymap f COMMAND "RESHAPE ; LINK_BEGIN ; GOTO_LINK"
|
||||||
|
|
Loading…
Reference in a new issue