merged
454ccf9bd516ffeb0f485474777b749f0605fab3
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 5caaf0ca0374 · Showing diff
- Parent 2: 8bb690cd1c6d · Diff against parent 2
bugabingas dorkfiles
454ccf9bd516ffeb0f485474777b749f0605fab3
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+2850 / −7075 text lines · all files grouped into 32 bars · 1 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately
+5 / −0 text lines
+13 / −16 text lines
alacritty/alacritty.windows.yml+106 / −2 text lines
Rough plan: Build a [cosmopolitan] install executable for true cross-plattform bootrap of my configuration.Shared configuration files between some Linux and some Windows hosts.[cosmopolitan]: https://justine.lol/cosmopolitan/index.html## bootstrapping a new host1. Install git1. Install a JDK1. git clone git@github.com:bugabinga/dotfiles1. `cd dotfiles`1. `java bootstripper.java .`> Pay attention to already existing symlinks!## rough goals- minimal amount of dependencies This helps in setting up new host. But it is really hard to achieve when hosts are allowed to be Windows and Linux AND [OpenBSD] ... The current state is a compromise reached after some experimentation.- editing and applying configs is "natural" Natural in this context is to mean: as if there was no dotfiles repository used for sharing. This is achieved by symlinking the files from the dotfiles repository into their normal locations. So when it comes time to edit a confg file, you can stay blissfully unaware of the dotfiles repository.## handling per host differencesThere are two classes of differences in configurations between platforms (specifically Linux and Windows in my case).### differing locations of config filesFor example, [NeoVim] stores its configuration at `~/.config/nvim` in Linux and at `~/AppData/Roaming/nvim` in Windows.In order to handle theses differences each host gets its own symlink file wiht the naming pattern `(hostname).symlinks`.The format of this file is:```path to configuration file/directory relative to dotfiles rootabsolute path of symlink on host```Each symlink path pair is to be delimited by a newline.Example:```neovim~/.config/nvimfoo/bar.conf~/.config/foobar.conf```This file will be parsed by [bootstripper] in order to create those symlinks.### differing values in configration filesMost often, these come down to different paths of stuff, that get refered to in config files.For example, [topgrade], an abstraction over a bunch of package managers and updaters, might want to know the location of your git repositories, so it can pull them for you.Some programs, e.g. [NeoVim], have rich configuration languages that are powerful enough for you to resolve those differences with conditionals.However some programs, e.g. [topgrade], offer only declarative configuration languages, which make it impossible to resolve this problem in the config.I tried solving this problem with some kind of a templating engine.But I quickly gave up on that, because it was too annoying to manage.Specifically, editing configuration stopped being "natural", meaning you cannot simply open and edit the file at the location you expect the config to be anymore.This natural flow is the reason symlinks are used.With templating in the mix, an intermediary step is necessary, between editing and applying config.Too much work.Instead, I use the `(hostname).symlink` files to resolve such cases.That means, that config files are completely independent per host, and as such some duplication of configuration occurs.A tradeoff well worth it in my opinion.## secretsSecrets are encrypted and saved as file into the `tresor` folder.The name of these file is a random UUID, which I map to their original purpose somewhere else.Those secret files are decrypted either by [bootstripper] or on demand in my scripts.## the trouble with bootstrapping dotfilesMost of my previous attempts at managing my configuration files failed because it is tricky to share them between Windows and Unix systems.If all my hosts were Unix(y), I would write a POSIX shell script and be done with it.But that does not work for Windows.Since I find it important to be able to setup my configuration files on any fresh new host, it is important to have as few dependencies as possible.However, with Windows in the mix, this is pretty hard, so I settled on a compromise: JDK.Things I tried in the past to solve this problem:- dotfiles managers (e.g. [chezmoi]) > too much work- writing a bootstrap/installer with [cosmopolitan] > extremely cool tech. unfortunatelly I am not a C programmer so I struggled a lot. > also, the resulting binary rewrites itself on first run. How do I keep a file version controlled that is allowed to change on first use, but should not result in a new modification...? > furthermore, managing the [cosmopolitan] toolchain for windows made extra work.- use POSIX shell for Unix, use PowerShell for Windows > too much work. maintaining the same program in 2 different languages ... depressing not because you have to write twice, but because you have to test twice.- Pretend Windows is Unix by only interfacing with it through [WSL]. > Windows is not Unix. [WSL] is cute, even useful for cross-compilation and testing. But when I am on Windows I want to use Windows, when I am on Linux I want to use Linux. Fighting the platform constantly is too tiring.Things I have not tried (yet?):- Use a language with a pleasant cross-compile story ([golang], [Rust], [ziglang]) and version control a binary for those platforms I care about.- Use [PowerShell Core] and maybe a script per platform to install it. This could be nice if [PowerShell Core] would replace [PowerShell Windows] and it was my main shell.[NeoVim]: https://neovim.io/[topgrade]: https://github.com/r-darwish/topgrade[bootstripper]: https://github.com/bugabinga/dotfiles/blob/trunk/bootstripper.java[chezmoi]: https://github.com/twpayne/chezmoi[golang]: https://golang.org/[Rust]: https://www.rust-lang.org/[ziglang]: https://ziglang.org/[WSL]: https://docs.microsoft.com/en-us/windows/wsl/about[PowerShell Core]: https://github.com/PowerShell/PowerShell[PowerShell Windows]: https://de.wikipedia.org/wiki/PowerShell[OpenBSD]: https://www.openbsd.org/+51 / −4 text lines
- remove cosmopolitan from git- add download script for cross9 and cosmopolitan- what do we do about ssh and gpg keys? or secrets in general?## Commands to remember- sd: search and replace- fd: find files recursively- diskonaut: explore file system visually for large files- btm (bottom): system overview- rg: search file contents- bat: show file content- mdcat: render markdown in the terminal- tokei: count lines of code- hyperfine: benchmark tool- menyoki: capture screenshots, record gifs- rpick: Choose something out of predefined model using fancy algorithms- tldr: tool documentation- grex: regular expression pattern generator- xh: make HTTP requests- watchexec: filesystem watcher- viu: view images in terminal (blocky approximation)- licensor: print a license text- pastel: manage colors- hexyl: terminal hex viewer- gib: generate gitignore files- ix (indexa): global file search- silicon: code pretty picture generator- eva: calculator- bandwhich: show network traffic information- so: search Stack Exchange - prose: simple text (markdown, emails, paragraphs) formatter- linky: check markdown for broken links- comrak: render markdown to html## Stuff to do- [ ] rewrite bootstripper and java commmands with zig. how to run them? precompile? zig run?- [ ] encrypt box key## Done- [x] how to abstract configs differences per platform? templates are painful to work with.- [x] abstract indexa config for windows / linux- [x] kill thy babbies: remove obsolete java commands. nu has builtins now for checksums and for random uuids- [x] use [systemd user] instance to manage env vars- [x] what to do about ssh and GPG keys? or secrets in general? - [x] say goodbye to GPG, too hard to manage.- [x] how to handle java tools in `tools` cross platform?- [x] sumneko on linux- [x] is there something like glow but in rust?- [x] get indexa config into dotfiles?[systemd user]: https://wiki.archlinux.org/title/Systemd/Usernew file mode 100644+17 / −0 text lines
[Desktop Entry]Type=ApplicationTryExec=alacrittyExec=alacrittyIcon=AlacrittyTerminal=falseCategories=System;TerminalEmulator;Name=AlacrittyGenericName=TerminalComment=A fast, cross-platform, OpenGL terminal emulatorStartupWMClass=AlacrittyActions=New;[Desktop Action New]Name=New TerminalExec=alacrittynew file mode 100644+2 / −0 text lines
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:osb="http://www.openswatchbook.org/uri/2009/osb" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="64" height="64" viewBox="0 0 64 64" version="1.1" xml:space="preserve" style="clip-rule:evenodd;fill-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41420996;enable-background:new" id="svg3967" sodipodi:docname="alacritty.svg" inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><metadata id="metadata3971"><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:title/></cc:Work></rdf:RDF></metadata><sodipodi:namedview pagecolor="#1b1b1b" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="1" inkscape:pageshadow="2" inkscape:window-width="1912" inkscape:window-height="2051" id="namedview3969" showgrid="true" inkscape:pagecheckerboard="false" showguides="false" inkscape:guide-bbox="true" inkscape:measure-start="35.0647,26.4746" inkscape:measure-end="23.3668,17.3739" inkscape:lockguides="false" inkscape:snap-page="false" inkscape:zoom="16.123347" inkscape:cx="29.021205" inkscape:cy="30.792291" inkscape:window-x="1912" inkscape:window-y="48" inkscape:window-maximized="0" inkscape:current-layer="layer1" inkscape:snap-smooth-nodes="false" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" showborder="true" inkscape:showpageshadow="false" inkscape:object-nodes="true" viewbox-y="-0.5" inkscape:snap-to-guides="false" inkscape:snap-grids="false"><sodipodi:guide position="52,8.2500022" orientation="1,0" id="guide959" inkscape:locked="false" inkscape:label="A Right" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,48.250002" orientation="0,1" id="guide961" inkscape:locked="false" inkscape:label="A Top" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="14,8.2500022" orientation="1,0" id="guide963" inkscape:locked="false" inkscape:label="A Left" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,24.750002" orientation="1,0" id="guide965" inkscape:locked="false" inkscape:label="Vertical Center" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,24.750002" orientation="0,1" id="guide967" inkscape:locked="false" inkscape:label="Horizontal Center" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="28.813,21.500002" orientation="1,0" id="guide969" inkscape:locked="false" inkscape:label="Flame Left" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="37.187,21.500002" orientation="1,0" id="guide971" inkscape:locked="false" inkscape:label="Flame Right" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="29.5,48.250002" orientation="1,0" id="guide973" inkscape:locked="false" inkscape:label="A Top Left" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="36.5,48.250002" orientation="1,0" id="guide975" inkscape:locked="false" inkscape:label="A Top Right" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="20.5,8.2500022" orientation="1,0" id="guide977" inkscape:locked="false" inkscape:label="Width A Left" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="45.5,8.2500022" orientation="1,0" id="guide979" inkscape:locked="false" inkscape:label="Width A Right" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="14,8.2500022" orientation="0,1" id="guide981" inkscape:locked="false" inkscape:label="A Bottom" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,12.688002" orientation="0,1" id="guide983" inkscape:locked="false" inkscape:label="Flame Curve Intersect" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="34.5,12.688002" orientation="1,0" id="guide985" inkscape:locked="false" inkscape:label="Right Flame Curve" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="31.5,12.688002" orientation="1,0" id="guide987" inkscape:locked="false" inkscape:label="Left Flame Curve" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,15.855002" orientation="-0.93245628,0.36128283" id="guide3628" inkscape:locked="false" inkscape:label="Inner Flame Angle Right" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,15.855002" orientation="-0.93245628,-0.36128283" id="guide3630" inkscape:locked="false" inkscape:label="Inner Flame Angle Left" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,21.500002" orientation="0,1" id="guide3644" inkscape:locked="false" inkscape:label="Flame Center" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="29.813,24.080519" orientation="1,0" id="guide3646" inkscape:locked="false" inkscape:label="Inner Flame Left" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="36.187,24.080519" orientation="1,0" id="guide3648" inkscape:locked="false" inkscape:label="Inner Flame Right" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,32.305002" orientation="0,1" id="guide3650" inkscape:locked="false" inkscape:label="Flame Top" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,5.0000022" orientation="0,1" id="guide3652" inkscape:locked="false" inkscape:label="Flame Bottom" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,53.750002" orientation="0,1" id="guide3936" inkscape:locked="false" inkscape:label="Term Top" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="33,3.0000022" orientation="0,1" id="guide3938" inkscape:locked="false" inkscape:label="Term Bottom" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="63,24.750002" orientation="1,0" id="guide3940" inkscape:locked="false" inkscape:label="Term Right" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="3.0000001,24.750002" orientation="1,0" id="guide3942" inkscape:locked="false" inkscape:label="Term Left" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="1.4777768e-07,56.750002" orientation="0,1" id="guide15457" inkscape:locked="false" inkscape:label="Outline Top" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="1.4777768e-07,56.750002" orientation="1,0" id="guide15459" inkscape:locked="false" inkscape:label="Outline Left" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="66,2.2454491e-06" orientation="0,1" id="guide15461" inkscape:locked="false" inkscape:label="Outline Bottom" inkscape:color="rgb(0,0,255)"/><sodipodi:guide position="66,2.2454491e-06" orientation="1,0" id="guide15463" inkscape:locked="false" inkscape:label="Outline Right" inkscape:color="rgb(0,0,255)"/></sodipodi:namedview><defs id="defs3965"><linearGradient id="red-orange" x1="0.025171699" y1="0.079489581" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0,473.895,-473.895,0,547.884,192.222)"><stop offset="0" style="stop-color:#ec2802;stop-opacity:1" id="stop926"/><stop offset="1" style="stop-color:#fcb200;stop-opacity:1" id="stop928"/></linearGradient><linearGradient id="linearGradient5362" osb:paint="solid"><stop style="stop-color:#aaaaaa;stop-opacity:1;" offset="0" id="stop5360"/></linearGradient><linearGradient inkscape:collect="always" xlink:href="#red-orange" id="linearGradient11006" x1="19.0625" y1="0" x2="19" y2="43.25" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.4018804,0,0,1.3482131,21.364273,-32.960592)"/><clipPath clipPathUnits="userSpaceOnUse" id="clipPath3639"><path inkscape:connector-curvature="0" id="path3641" d="M 14.813062,26.75 19,15.945 23.186938,26.75 19,43.25 Z" style="fill:none;stroke:#000000;stroke-width:0.03779528;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1.41420996;stroke-dasharray:none;stroke-opacity:1"/></clipPath><filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter1378" x="-0.096199476" width="1.192399" y="-0.074239448" height="1.1484789"><feGaussianBlur inkscape:collect="always" stdDeviation="1.0020779" id="feGaussianBlur1380"/></filter></defs><g inkscape:groupmode="layer" id="layer1" inkscape:label="Main" style="display:inline" transform="translate(-16,35.820639)" sodipodi:insensitive="true"><g id="g4199"><path clip-path="none" sodipodi:nodetypes="ccccccc" inkscape:connector-curvature="0" id="path5352" d="M 43.566236,2.9721345 42.175119,6.3426951 C 45.913195,17.853356 45.913195,17.853356 48,27.894557 50.086805,17.853356 50.086805,17.853356 53.824881,6.3426951 L 52.433764,2.9721345 48,-7.7705098 Z" style="clip-rule:evenodd;fill:#069efe;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26960364;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1.41420996;stroke-dasharray:none;stroke-opacity:0.4330357;paint-order:stroke markers fill"/><path sodipodi:nodetypes="cccccccc" inkscape:connector-curvature="0" id="path5336" d="m 43.09342,-32.960595 h 9.81316 l 21.729148,53.92852 H 65.523505 L 48,-20.221038 30.476495,20.967925 h -9.112223 z" style="clip-rule:evenodd;fill:url(#linearGradient11006);fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient10962);stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1.41420996;stroke-dasharray:none;stroke-opacity:1"/><path transform="matrix(1.3912031,0,0,1.3379446,21.567141,-29.104025)" clip-path="url(#clipPath3639)" style="clip-rule:evenodd;display:inline;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:0;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers fill stroke;filter:url(#filter1378)" d="M 19,32.395 31.5,0 6.5,0.13313911 Z" id="path9580" inkscape:connector-curvature="0" sodipodi:nodetypes="cccc"/></g></g></svg>No final newlinenew file mode 100644+32 / −0 text lines
# Linux configuration for alacritty# Import common configuration for all platforms.# Subsequent configuration in this file will overwrite the common configuration.import: - ~/.config/alacritty/alacritty_common.ymlfont: normal: family: BlexMono Nerd Font style: Regular bold: style: Bold italic: style: Italic size: 11.0working_directory: /home/olikey_bindings: - { key: Comma, mods: Control, command: { program: "alacritty", args: [ "--title", "Edit Alacritty Configuration", "--command", "nvim ~/.config/alacritty/alacritty.yml", ], }, } - { key: Return, mods: Alt, action: None }new file mode 100644+33 / −0 text lines
# Windows configuration for alacritty# Import common configuration for all platforms.# Subsequent configuration in this file will overwrite the common configuration.import: - ~/.config/alacritty/alacritty_common.yml# Font configuration (changes require restart)font: normal: family: BlexMono NF style: Medium bold: style: Bold italic: style: Italic size: 13.0working_directory: C:\\Users\\okrkey_bindings: - { key: Comma, mods: Control, command: { program: "alacritty", args: [ "--title", "Edit Alacritty Configuration", "--command", "nvim C:/Users/okr/AppData/Roaming/alacritty/alacritty.yml", ], }, } - { key: Return, mods: Alt, action: None }deleted file mode 100644+0 / −35 text lines
# Windows configuration for alacritty# Import common configuration for all platforms.# Subsequent configuration in this file will overwrite the common configuration.import: - ~/.config/alacritty/alacritty_common.ymlwindow: startup_mode: Fullscreen# Font configuration (changes require restart)font: normal: family: BlexMono NF style: Medium bold: style: Bold italic: style: Italic size: 13.0working_directory: C:\\Users\\okrkey_bindings: - { key: Comma, mods: Control, command: { program: "alacritty", args: [ "--title", "Edit Alacritty Configuration", "--command", "nvim C:/Users/okr/AppData/Roaming/alacritty/alacritty.yml", ], }, } - { key: Return, mods: Alt, action: None }deleted file mode 100644+0 / −274 text lines
# Bugabinga configuration for alacritty.# "common" refers to those parts of the configuration, which are cross platform.# This file is expected to be imported into the the canonical configuration file on the# respective OS.# On Windows: ~/AppData/Roaming/alacritty.yml# On Linux: ~/.config/alacritty/alacritty.ymlwindow: padding: x: 16 y: 16 dynamic_padding: false dynamic_title: falsecursor: style: shape: Block blinking: Offmouse: hide_when_typing: truekey_bindings: - { key: T, mods: Control|Shift, action: SpawnNewInstance } - { key: W, mods: Control|Shift, action: Quit }shell: program: nuschemes: ayu_dark: &ayu_dark primary: background: '#0A0E14' foreground: '#B3B1AD' normal: black: '#01060E' red: '#EA6C73' green: '#91B362' yellow: '#F9AF4F' blue: '#53BDFA' magenta: '#FAE994' cyan: '#90E1C6' white: '#C7C7C7' bright: black: '#686868' red: '#F07178' green: '#C2D94C' yellow: '#FFB454' blue: '#59C2FF' magenta: '#FFEE99' cyan: '#95E6CB' white: '#FFFFFF' ayu_mirage: &ayu_mirage primary: background: '#202734' foreground: '#CBCCC6' normal: black: '#191E2A' red: '#FF3333' green: '#BAE67E' yellow: '#FFA759' blue: '#73D0FF' magenta: '#FFD580' cyan: '#95E6CB' white: '#C7C7C7' bright: black: '#686868' red: '#F27983' green: '#A6CC70' yellow: '#FFCC66' blue: '#5CCFE6' magenta: '#FFEE99' cyan: '#95E6CB' white: '#FFFFFF' argonaut: &argonaut primary: background: '#292C3E' foreground: '#EBEBEB' cursor: text: '#FF261E' cursor: '#FF261E' normal: black: '#0d0d0d' red: '#FF301B' green: '#A0E521' yellow: '#FFC620' blue: '#1BA6FA' magenta: '#8763B8' cyan: '#21DEEF' white: '#EBEBEB' bright: black: '#6D7070' red: '#FF4352' green: '#B8E466' yellow: '#FFD750' blue: '#1BA6FA' magenta: '#A578EA' cyan: '#73FBF1' white: '#FEFEF8' papercolor: &papercolor primary: background: "#eeeeee" foreground: "#878787" cursor: text: "#eeeeee" cursor: "#878787" normal: black: "#eeeeee" red: "#af0000" green: "#008700" yellow: "#5f8700" blue: "#0087af" magenta: "#878787" cyan: "#005f87" white: "#444444" bright: black: "#bcbcbc" red: "#d70000" green: "#d70087" yellow: "#8700af" blue: "#d75f00" magenta: "#d75f00" cyan: "#005faf" white: "#005f87" afterglow: &afterglow primary: background: "#2c2c2c" foreground: "#d6d6d6" dim_foreground: "#dbdbdb" bright_foreground: "#d9d9d9" dim_background: "#202020" # not sure bright_background: "#3a3a3a" # not sure cursor: text: "#2c2c2c" cursor: "#d9d9d9" normal: black: "#1c1c1c" red: "#bc5653" green: "#909d63" yellow: "#ebc17a" blue: "#7eaac7" magenta: "#aa6292" cyan: "#86d3ce" white: "#cacaca" bright: black: "#636363" red: "#bc5653" green: "#909d63" yellow: "#ebc17a" blue: "#7eaac7" magenta: "#aa6292" cyan: "#86d3ce" white: "#f7f7f7" dim: black: "#232323" red: "#74423f" green: "#5e6547" yellow: "#8b7653" blue: "#556b79" magenta: "#6e4962" cyan: "#5c8482" white: "#828282" ir_black: &ir_black primary: background: '#000000' foreground: '#ffffff' cursor: text: '#ffffff' cursor: '#ffffff' normal: black: '#4e4e4e' red: '#ff6c60' green: '#a8ff60' yellow: '#ffffb6' blue: '#96cbfe' magenta: '#ff73fd' cyan: '#c6c5fe' white: '#eeeeee' bright: black: '#7c7c7c' red: '#ffb6b0' green: '#ceffab' yellow: '#ffffcb' blue: '#b5dcfe' magenta: '#ff9cfe' cyan: '#dfdffe' white: '#ffffff' nord: &nord primary: background: '#2E3440' foreground: '#D8DEE9' normal: black: '#3B4252' red: '#BF616A' green: '#A3BE8C' yellow: '#EBCB8B' blue: '#81A1C1' magenta: '#B48EAD' cyan: '#88C0D0' white: '#E5E9F0' bright: black: '#4C566A' red: '#BF616A' green: '#A3BE8C' yellow: '#EBCB8B' blue: '#81A1C1' magenta: '#B48EAD' cyan: '#8FBCBB' white: '#ECEFF4' seoul256_dark: &seoul256_dark primary: background: '#3a3a3a' foreground: '#d0d0d0' normal: black: '#4e4e4e' red: '#d68787' green: '#5f865f' yellow: '#d8af5f' blue: '#85add4' magenta: '#d7afaf' cyan: '#87afaf' white: '#d0d0d0' bright: black: '#626262' red: '#d75f87' green: '#87af87' yellow: '#ffd787' blue: '#add4fb' magenta: '#ffafaf' cyan: '#87d7d7' white: '#e4e4e4' seoul256_light: &seoul256_light primary: background: '#dadada' foreground: '#4e4e4e' normal: black: '#4e4e4e' red: '#af5f5f' green: '#5f885f' yellow: '#af8760' blue: '#5f87ae' magenta: '#875f87' cyan: '#5f8787' white: '#e4e4e4' bright: black: '#3a3a3a' red: '#870100' green: '#005f00' yellow: '#d8865f' blue: '#0087af' magenta: '#87025f' cyan: '#008787' white: '#eeeeee' taerminal: &taerminal primary: background: '#26282a' foreground: '#f0f0f0' cursor: background: '#f0f0f0' foreground: '#26282a' normal: black: '#26282a' red: '#ff8878' green: '#b4fb73' yellow: '#fffcb7' blue: '#8bbce5' magenta: '#ffb2fe' cyan: '#a2e1f8' white: '#f1f1f1' bright: black: '#6f6f6f' red: '#fe978b' green: '#d6fcba' yellow: '#fffed5' blue: '#c2e3ff' magenta: '#ffc6ff' cyan: '#c0e9f8' white: '#ffffff'colors: *nordnew file mode 100644+274 / −0 text lines
# Bugabinga configuration for alacritty.# "common" refers to those parts of the configuration, which are cross platform.# This file is expected to be imported into the the canonical configuration file on the# respective OS.# On Windows: ~/AppData/Roaming/alacritty.yml# On Linux: ~/.config/alacritty/alacritty.ymlwindow: padding: x: 16 y: 16 dynamic_padding: false dynamic_title: falsecursor: style: shape: Block blinking: Offmouse: hide_when_typing: truekey_bindings: - { key: T, mods: Control|Shift, action: SpawnNewInstance } - { key: W, mods: Control|Shift, action: Quit }shell: program: nuschemes: ayu_dark: &ayu_dark primary: background: '#0A0E14' foreground: '#B3B1AD' normal: black: '#01060E' red: '#EA6C73' green: '#91B362' yellow: '#F9AF4F' blue: '#53BDFA' magenta: '#FAE994' cyan: '#90E1C6' white: '#C7C7C7' bright: black: '#686868' red: '#F07178' green: '#C2D94C' yellow: '#FFB454' blue: '#59C2FF' magenta: '#FFEE99' cyan: '#95E6CB' white: '#FFFFFF' ayu_mirage: &ayu_mirage primary: background: '#202734' foreground: '#CBCCC6' normal: black: '#191E2A' red: '#FF3333' green: '#BAE67E' yellow: '#FFA759' blue: '#73D0FF' magenta: '#FFD580' cyan: '#95E6CB' white: '#C7C7C7' bright: black: '#686868' red: '#F27983' green: '#A6CC70' yellow: '#FFCC66' blue: '#5CCFE6' magenta: '#FFEE99' cyan: '#95E6CB' white: '#FFFFFF' argonaut: &argonaut primary: background: '#292C3E' foreground: '#EBEBEB' cursor: text: '#FF261E' cursor: '#FF261E' normal: black: '#0d0d0d' red: '#FF301B' green: '#A0E521' yellow: '#FFC620' blue: '#1BA6FA' magenta: '#8763B8' cyan: '#21DEEF' white: '#EBEBEB' bright: black: '#6D7070' red: '#FF4352' green: '#B8E466' yellow: '#FFD750' blue: '#1BA6FA' magenta: '#A578EA' cyan: '#73FBF1' white: '#FEFEF8' papercolor: &papercolor primary: background: "#eeeeee" foreground: "#878787" cursor: text: "#eeeeee" cursor: "#878787" normal: black: "#eeeeee" red: "#af0000" green: "#008700" yellow: "#5f8700" blue: "#0087af" magenta: "#878787" cyan: "#005f87" white: "#444444" bright: black: "#bcbcbc" red: "#d70000" green: "#d70087" yellow: "#8700af" blue: "#d75f00" magenta: "#d75f00" cyan: "#005faf" white: "#005f87" afterglow: &afterglow primary: background: "#2c2c2c" foreground: "#d6d6d6" dim_foreground: "#dbdbdb" bright_foreground: "#d9d9d9" dim_background: "#202020" # not sure bright_background: "#3a3a3a" # not sure cursor: text: "#2c2c2c" cursor: "#d9d9d9" normal: black: "#1c1c1c" red: "#bc5653" green: "#909d63" yellow: "#ebc17a" blue: "#7eaac7" magenta: "#aa6292" cyan: "#86d3ce" white: "#cacaca" bright: black: "#636363" red: "#bc5653" green: "#909d63" yellow: "#ebc17a" blue: "#7eaac7" magenta: "#aa6292" cyan: "#86d3ce" white: "#f7f7f7" dim: black: "#232323" red: "#74423f" green: "#5e6547" yellow: "#8b7653" blue: "#556b79" magenta: "#6e4962" cyan: "#5c8482" white: "#828282" ir_black: &ir_black primary: background: '#000000' foreground: '#ffffff' cursor: text: '#ffffff' cursor: '#ffffff' normal: black: '#4e4e4e' red: '#ff6c60' green: '#a8ff60' yellow: '#ffffb6' blue: '#96cbfe' magenta: '#ff73fd' cyan: '#c6c5fe' white: '#eeeeee' bright: black: '#7c7c7c' red: '#ffb6b0' green: '#ceffab' yellow: '#ffffcb' blue: '#b5dcfe' magenta: '#ff9cfe' cyan: '#dfdffe' white: '#ffffff' nord: &nord primary: background: '#2E3440' foreground: '#D8DEE9' normal: black: '#3B4252' red: '#BF616A' green: '#A3BE8C' yellow: '#EBCB8B' blue: '#81A1C1' magenta: '#B48EAD' cyan: '#88C0D0' white: '#E5E9F0' bright: black: '#4C566A' red: '#BF616A' green: '#A3BE8C' yellow: '#EBCB8B' blue: '#81A1C1' magenta: '#B48EAD' cyan: '#8FBCBB' white: '#ECEFF4' seoul256_dark: &seoul256_dark primary: background: '#3a3a3a' foreground: '#d0d0d0' normal: black: '#4e4e4e' red: '#d68787' green: '#5f865f' yellow: '#d8af5f' blue: '#85add4' magenta: '#d7afaf' cyan: '#87afaf' white: '#d0d0d0' bright: black: '#626262' red: '#d75f87' green: '#87af87' yellow: '#ffd787' blue: '#add4fb' magenta: '#ffafaf' cyan: '#87d7d7' white: '#e4e4e4' seoul256_light: &seoul256_light primary: background: '#dadada' foreground: '#4e4e4e' normal: black: '#4e4e4e' red: '#af5f5f' green: '#5f885f' yellow: '#af8760' blue: '#5f87ae' magenta: '#875f87' cyan: '#5f8787' white: '#e4e4e4' bright: black: '#3a3a3a' red: '#870100' green: '#005f00' yellow: '#d8865f' blue: '#0087af' magenta: '#87025f' cyan: '#008787' white: '#eeeeee' taerminal: &taerminal primary: background: '#26282a' foreground: '#f0f0f0' cursor: background: '#f0f0f0' foreground: '#26282a' normal: black: '#26282a' red: '#ff8878' green: '#b4fb73' yellow: '#fffcb7' blue: '#8bbce5' magenta: '#ffb2fe' cyan: '#a2e1f8' white: '#f1f1f1' bright: black: '#6f6f6f' red: '#fe978b' green: '#d6fcba' yellow: '#fffed5' blue: '#c2e3ff' magenta: '#ffc6ff' cyan: '#c0e9f8' white: '#ffffff'colors: *nordnew file mode 100644+124 / −0 text lines
import java.nio.file.*;import java.io.*;import java.util.*;class bootstripper{ public static void main(String[] arguments) throws Exception { if(arguments.length == 0){ usage(); fail(); } var dorkfiles_root = Path.of(arguments[0]).toRealPath(); System.out.printf("Assuming dorkfiles root repo in %s.%n", emphasize_local(dorkfiles_root.toString())); decrypt_secrets(dorkfiles_root.resolve("secrets")); var hostname = hostname(); System.out.printf("Hostname: %s%n", emphasize_global(hostname)); var symlinks_file = hostname + ".symlinks"; create_symlinks(dorkfiles_root.resolve(symlinks_file)); } static void decrypt_secrets(Path secrets_root) throws Exception { System.out.printf("%s:Decrypting files in %s folder.%n", emphasize_global("TODO"), emphasize_local(secrets_root.getFileName().toString())); } static void create_symlinks(Path symlinks_file) throws Exception { System.out.printf("Creating symlinks as defined in %s file.%n", emphasize_local(symlinks_file.getFileName().toString())); var lines = Files.readAllLines(symlinks_file); String source = null; String target = null; for(String line : lines){ if(line.isBlank()) continue; if (source == null) source = line; else if (target == null) target = line; if(source != null && target != null){ link(source, target); source = null; target = null; } } } static void link(String source, String target) throws Exception { var home = System.getProperty("user.home"); var source_path = Path.of(source.replace("~", home)).toAbsolutePath(); var target_path = Path.of(target.replace("~", home)).toAbsolutePath(); var is_directory = Files.isDirectory(source_path); if(Files.exists(target_path, LinkOption.NOFOLLOW_LINKS)){ if(Files.exists(target_path)) { System.out.printf("%n✅ %s already exists!%nNot linking %s.%n", emphasize_global(target_path.toString()), emphasize_local(source_path.toString())); return; } else { System.out.printf("❌ %s exists, but it points into nirvana. Removing broken link!%n", target_path.toString()); Files.delete(target_path); } } System.out.printf("🔗 %s ➔ %s.%n", emphasize_local(source_path.toString()), emphasize_local(target_path.toString())); Files.createDirectories(target_path.getParent()); try{ Files.createSymbolicLink(target_path, source_path); } catch (Exception __) { /* * Creating symbolic links on Windows only recently became possible without admin rights. * However, most tools (including JDK) have not yet adapted to this change and still require admin rights. * Until that is fixed, we escape to a system tool that is known to behave correcty in this regard. */ var operating_system = System.getProperty("os.name"); if(operating_system.toLowerCase().contains("win")){ var process = new ProcessBuilder(); var command = process.command(); command.add("cmd.exe"); command.add("/c"); command.add("mklink"); if(is_directory){ command.add("/d"); } command.add(target_path.toString()); command.add(source_path.toString()); process.inheritIO() .start() .onExit() .join(); } else { __.printStackTrace(); fail("Could not create symbolic link!"); } } } static String hostname() throws Exception { var process = new ProcessBuilder() .command("hostname") .start() .onExit() .join(); try(var reader = new InputStreamReader(process.getInputStream())) { int character = -1; var output = new StringBuilder(); while((character = reader.read()) != -1){ if(character == '\n' || character == '\r') continue; output.append((char)character); } return output.toString(); } } static void usage() { System.out.printf("Bootstraps bugabingas %s.%n", emphasize_local("dorkfiles")); System.out.printf("%s: java bootstripper.java <dotfiles root path>%n", emphasize_global("Usage")); } static void exit() { System.exit(0); } static String emphasize_global(String message) { return "\033[4m" + message + "\033[0m"; } static String emphasize_local(String message) { return "\033[3m" + message + "\033[0m"; } static void fail(String message, Object... arguments) { System.out.printf(message, arguments); System.exit(-1); } static void fail() { System.exit(-1); }}new file mode 100644+23 / −0 text lines
[build]# enable a cache for crates between buildsrustc-wrapper = "sccache"# since we only care for builds for our own machine, let's benefit from thise juicy modern cpu featuresrustflags = [ "-C","target-cpu=native" ]# let's have some fun with "omgz performance rice dat cake"[profile.release]# link time optimization is slow, but allows inter-crate analysislto = "fat"# similarly, crates get split into chunks while compiling in order to maximize throughput# but we don't care about compile wall time here, only RAWR PERFF# less chunks affors more opportunity for optimiziationscodegen-units = 1[target.x86_64-pc-windows-msvc]# apparently, the LLVM linker is faster than others...linker = "lld-link.exe"[target.x86_64-unknown-linux-gnu]rustflags = [ "-C", "linker=clang",]deleted file mode 100644+0 / −53 text lines
# This is Git's per-user configuration file.[user] name = Oliver Jan Krylow email = olver@bugabinga.net[core] editor = nvim quotepath = false autocrlf = input pager = delta[diff] colorMoved = default tool = nvimdiff[difftool] prompt = false[difftool "nvimdiff"] cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""[merge] tool = nvimmerge[mergetool] prompt = true[mergetool "nvimmerge"] cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" -c 'wincmd w' -c 'wincmd J'"[pull] rebase = false[interactive] diffFilter = delta --color-only[delta] side-by-side = true line-numbers = true decorations = true navigate = true syntax-theme = none[interactive] diffFilter = delta --color-only[init] defaultBranch = trunk# In order to have host-specific configuration, I include additional settings here.# On each host a different file might be symlinked into '.gitconfig.include'.[include] path = .gitconfig.includedeleted file mode 100644+0 / −7 text lines
new file mode 100644+58 / −0 text lines
# vim: ft=gitconfig# This is Git's per-user configuration file.[user] name = Oliver Jan Krylow email = olver@bugabinga.net[core] editor = nvim quotepath = false autocrlf = input pager = delta safecrlf = false[diff] colorMoved = default tool = nvimdiff[difftool] prompt = false[difftool "nvimdiff"] cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""[merge] tool = nvimmerge[mergetool] prompt = true[mergetool "nvimmerge"] cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" -c 'wincmd w' -c 'wincmd J'"[pull] rebase = false[interactive] diffFilter = delta --color-only[delta] side-by-side = true line-numbers = true decorations = true navigate = true syntax-theme = none[interactive] diffFilter = delta --color-only[init] defaultBranch = trunk[commit] verbose = true# In order to have host-specific configuration, I include additional settings here.# On each host a different file might be symlinked into '.gitconfig.include'.[include] path = .gitconfig.includenew file mode 100644+7 / −0 text lines
new file mode 100644+7 / −0 text lines
new file mode 100644Binary size (old → new): 0 → 6376 bytes.
new file mode 100644+141 / −0 text lines
[flags]# Default values for command-line flags.# Flags provided to CLI will override this group of options.# Initial query.# query = "blah blah"# Whether to search case-sensitively.# Defaults to smart case.# case_sensitive = false# Whether to search case-insensitively.# Defaults to smart case.# ignore_case = false# Whether to search in path.# match_path = false# Whether to search in path when query contains path separators.auto_match_path = true# Whether to enable regex.# regex = true# Number of threads to use.# Defaults to the number of available CPUs - 1.# threads = 4[database]# Location of database file. Defaults to {user's data directory}/indexa/database.db# location = "/path/to/database/database.db"# File/directory statuses to index.# basename, path and extension are implicitly specified.index = [ # "size", # "mode", # "created", # "modified", # "accessed",]# File/directory statuses to enable fast sorting for.# basename is implicitly specified.fast_sort = [ # "path", # "extension", # "size", # "mode", # "created", # "modified", # "accessed",]# Root directories to index. Defaults to / on Unix and %HOMEDRIVE%\ (usually C:\) on Windows.dirs = [ "/" ]# Whether to ignore hidden files/directories.ignore_hidden = false[ui]# File/directory status to sort by.sort_by = "basename"# sort_by = "path"# sort_by = "extension"# sort_by = "size"# sort_by = "mode"# sort_by = "created"# sort_by = "modified"# sort_by = "accessed"# Sort order.sort_order = "ascending"# sort_order = "descending"# Whether to sort directories before files.sort_dirs_before_files = true# Whether to show size in human readable format.human_readable_size = true# Datetime format for Created, Modified, and Accessed columns.datetime_format = "%Y-%m-%d %R"# Margin between columns.column_spacing = 2# Columns from left to right.# Columns with width specified will have fixed widths.# Remaining screen width is evenly distributed among other columns.[[ui.columns]]status = "basename"[[ui.columns]]status = "size"width = 10[[ui.columns]]status = "modified"width = 16[[ui.columns]]status = "path"[ui.unix]# Format of mode column.mode_format = "symbolic"# mode_format = "octal"[ui.windows]# Format of mode column.# mode_format = "traditional"mode_format = "powershell"[ui.colors]# Colors in one of following formats:# - Color name# reset, black, white, red, green, yellow, blue, magenta, cyan, gray, darkgray,# lightred, lightgreen, lightyellow, lightblue, lightmagenta, lightcyan# - RGB e.g. "66, 135, 245"# - Hex e.g. "#e43", "#fcba03"# Text (selected line)selected_fg = "lightblue"# Background (selected line)selected_bg = "reset"# Text (matched substring)matched_fg = "black"# Background (matched substring)matched_bg = "lightblue"# Text (error message)error_fg = "red"# Background (error message)error_bg = "reset"# Promptprompt = "lightblue"new file mode 100644+135 / −0 text lines
[flags]# Default values for command-line flags.# Flags provided to CLI will override this group of options.# Initial query.# query = "blah blah"# Whether to search case-sensitively.# Defaults to smart case.# case_sensitive = false# Whether to search case-insensitively.# Defaults to smart case.# ignore_case = false# Whether to search in path.match_path = "auto"# Whether to enable regex.# regex = true# Number of threads to use.# Defaults to the number of available CPUs - 1.# threads = 4[database]# Location of database file. Defaults to {user's data directory}/indexa/database.db# location = "/path/to/database/database.db"# File/directory statuses to index.# basename, path and extension are implicitly specified.index = [ # "size", # "mode", # "created", # "modified", # "accessed",]# File/directory statuses to enable fast sorting for.# basename is implicitly specified.fast_sort = [ # "path", # "extension", # "size", # "mode", # "created", # "modified", # "accessed",]# Root directories to index. Defaults to / on Unix and %HOMEDRIVE%\ (usually C:\) on Windows.dirs = [ "C:\\", "D:\\" ]# Whether to ignore hidden files/directories.ignore_hidden = false[ui]# File/directory status to sort by.sort_by = "basename"# sort_by = "path"# sort_by = "extension"# sort_by = "size"# sort_by = "mode"# sort_by = "created"# sort_by = "modified"# sort_by = "accessed"# Sort order.sort_order = "ascending"# sort_order = "descending"# Whether to sort directories before files.sort_dirs_before_files = true# Whether to show size in human readable format.human_readable_size = true# Datetime format for Created, Modified, and Accessed columns.datetime_format = "%d.%m.%Y %R"# Margin between columns.column_spacing = 4# Columns from left to right.# Columns with width specified will have fixed widths.# Remaining screen width is evenly distributed among other columns.[[ui.columns]]status = "basename"[[ui.columns]]status = "modified"width = 16[[ui.columns]]status = "path"[ui.unix]# Format of mode column.mode_format = "symbolic"# mode_format = "octal"[ui.windows]# Format of mode column.# mode_format = "traditional"mode_format = "powershell"[ui.colors]# Colors in one of following formats:# - Color name# reset, black, white, red, green, yellow, blue, magenta, cyan, gray, darkgray,# lightred, lightgreen, lightyellow, lightblue, lightmagenta, lightcyan# - RGB e.g. "66, 135, 245"# - Hex e.g. "#e43", "#fcba03"# Text (selected line)selected_fg = "white"# Background (selected line)selected_bg = "magenta"# Text (matched substring)matched_fg = "lightcyan"# Background (matched substring)matched_bg = "reset"# Text (error message)error_fg = "red"# Background (error message)error_bg = "reset"# Promptprompt = "magenta"deleted file mode 100644+0 / −28 text lines
-- vim: ft=lua tw=80stds.nvim = { read_globals = { 'jit' },}std = 'lua51+nvim'self = falseignore = { -- max_line_length '631', -- unused argument, for vars with "_" prefix '212/_.*', '241/_.*',}globals = { 'cheatsheet',}read_globals = { vim = { other_fields = true, fields = { g = { read_only = false, other_fields = true, }, }, },}files['.luacheckrc'] = { only = { '1' } }deleted file mode 100644+0 / −6 text lines
+46 / −39 text lines
-- - options => use metaaccessors: vim.o, vim.bo, vim.wo-- - options => use vim.opt and metaaccessors: vim.o, vim.bo, vim.wo-- My cheatsheet is an initial buffer (if none was specified) where I put stuff to remember/learn.local cheatsheet, setup_cheatsheet = require 'cheatsheet'()-- make cheatsheet globally available for easy access in plugins configurations blocks of packer_G.cheatsheet = cheatsheetcheatsheet ''cheatsheet 'Stuff for bugabinga to remember about NeoVim'cheatsheet ''local settings = require 'general_editor_settings'-- Commands have no nvim API yet, so we use vimscript...cheatsheet ':WhatHighlight => This command shows the highlight group under the cursor'vim.cmd [[command! WhatHighlight lua syntax_stack()]]cheatsheet ':TSHighlightCapturesUnderCursor => This command shows the highlight group under the cursor, when TreeSitter is used'-- cheatsheet':PluginsInstall => Install the specified plugins if they are not already installed'vim.cmd([[command! PluginsInstall packadd packer.nvim | lua Plugins.install()]])vim.cmd([[command! PluginsClean packadd packer.nvim | lua Plugins.clean()]])vim.cmd [[command! PluginsCompile packadd packer.nvim | lua plugins.compile()]]vim.cmd([[command! PluginsCompile packadd packer.nvim | lua Plugins.compile()]])cheatsheet(":PluginsProfile => Show the measured startup times of plugins")vim.cmd([[command! PluginsProfile packadd packer.nvim | lua Plugins.profile_output()]])vim.cmd([[command! PluginsStatus packadd packer.nvim | lua Plugins.status()]])vim.cmd [[command! PluginsStatus packadd packer.nvim | lua plugins.status()]]+48 / −50 text lines
-- Throughout the configuration code, this function is expected to be called and given lines of text to display.return function() local cheatsheet_lines = { 'CHEATSHEET VIM COMMANDS' } local is_setup = false return function(message) table.insert(cheatsheet_lines, message) if is_setup and vim.api.nvim_buf_get_name(0):match 'cheatsheet' then vim.cmd [[noautocmd setlocal modifiable]] -- Adds message by appending to the end of current buffer vim.api.nvim_buf_set_lines(0, -1, -1, false, { message }) vim.cmd [[noautocmd setlocal nomodifiable nomodified]] end end, function() if -- program arguments were given vim.fn.argc() ~= 0 -- the buffer is not empty or vim.fn.line2byte '$' ~= -1 -- vim is already in insert mode or vim.o.insertmode -- buffer is not modifiable or not vim.o.modifiable then -- simply do nothing, which results in the normal nvim behaviour return end -- disables the default intro screen vim.o.shortmess = vim.o.shortmess .. 'I' -- ignore all autocommand event while we setup our start screen vim.o.eventignore = 'all' vim.cmd [[noautocmd silent! setlocal bufhidden=wipe colorcolumn= foldcolumn=0 matchpairs= nobuflisted nocursorcolumn nocursorline nolist nonumber norelativenumber nospell noswapfile signcolumn=no synmaxcol& statusline=cheatsheet filetype=intro]] -- add lines here to buffer vim.api.nvim_buf_set_name(0, 'cheatsheet') vim.api.nvim_buf_set_lines( 0, 0, #cheatsheet_lines, false, cheatsheet_lines ) vim.cmd [[noautocmd setlocal nomodifiable nomodified]] vim.cmd [[silent! %foldopen!]] vim.cmd [[normal! zb]] -- when entering insert mode, open new buffer vim.cmd [[nnoremap <buffer><nowait><silent> i :enew <bar> startinsert<cr>]] vim.o.eventignore = '' -- remember if the cheatsheet was already set up, so that the messenger function can instead modify the buffer is_setup = true endendlocal cheatsheet_lines = { "CHEATSHEET VIM COMMANDS" }local is_setup = falsereturn { print = function(message) table.insert(cheatsheet_lines, message) if is_setup and vim.api.nvim_buf_get_name(0):match("cheatsheet") then vim.cmd([[noautocmd setlocal modifiable]]) -- Adds message by appending to the end of current buffer vim.api.nvim_buf_set_lines(0, -1, -1, false, { message }) vim.cmd([[noautocmd setlocal nomodifiable nomodified]]) end end, setup = function() if -- program arguments were given vim.fn.argc() ~= 0 -- the buffer is not empty or vim.fn.line2byte("$") ~= -1 -- vim is already in insert mode or vim.o.insertmode -- buffer is not modifiable or not vim.o.modifiable then -- simply do nothing, which results in the normal nvim behaviour return end -- disables the default intro screen vim.o.shortmess = vim.o.shortmess .. "I" -- ignore all autocommand event while we setup our start screen vim.o.eventignore = "all" vim.cmd( [[noautocmd silent! setlocal bufhidden=wipe colorcolumn= foldcolumn=0 matchpairs= nobuflisted nocursorcolumn nocursorline nolist nonumber norelativenumber nospell noswapfile signcolumn=no synmaxcol& statusline=cheatsheet filetype=intro]] ) -- add lines here to buffer vim.api.nvim_buf_set_name(0, "cheatsheet") vim.api.nvim_buf_set_lines(0, 0, #cheatsheet_lines, false, cheatsheet_lines) vim.cmd([[noautocmd setlocal nomodifiable nomodified]]) vim.cmd([[silent! %foldopen!]]) vim.cmd([[normal! zb]]) -- when entering insert mode, open new buffer vim.cmd([[nnoremap <buffer><nowait><silent> i :enew <bar> startinsert<cr>]]) vim.o.eventignore = "" -- remember if the cheatsheet was already set up, so that the messenger function can instead modify the buffer is_setup = true end,}+0 / −1 text lines
+135 / −132 text lines
-- Setting the width of the tab character to 2 local tab_size = 2 vim.opt.tabstop = tab_size vim.opt.shiftwidth = tab_size vim.opt.softtabstop = tab_size -- convert tabs to spaces vim.opt.expandtab = true -- Keep indentation of new lines in line with previuos lines vim.opt.autoindent = true vim.opt.copyindent = true vim.opt.smartindent = true -- Do not display the cursorposition, since it can be shown when necesary 'g <C-G>' vim.opt.ruler = false -- How many milliseconds must pass before neovim decides I was "idle" vim.opt.updatetime = 250 -- How long to wait between key sequences in order to chain them. e.g. <LEADER>b vim.opt.timeoutlen = 350 -- I do not care for folding vim.opt.foldenable = false vim.opt.cursorline = true -- Highlight the cursor line in the current buffer autocommand { show_cursor_line_in_active_window = { [[WinLeave * lua vim.opt.cursorline = false]], [[WinEnter * lua vim.opt.cursorline = true]], [[InsertEnter * lua vim.opt.cursorline = false]], [[InsertLeave * lua vim.opt.cursorline = true]], }, } -- integrate Powershell Core with nvim if vim.fn.has('win32') == 1 then vim.opt.shell = 'powershell' vim.opt.shellquote = '' vim.opt.shellxquote = '' vim.opt.shellcmdflag = '-NoLogo -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -Command' vim.opt.shellredir = '| Out-File -Encoding UTF8' vim.opt.shellpipe = '| Out-File -Encoding UTF8' end -- insert whitespace type based on whitespace on previous line vim.opt.smarttab = true vim.opt.hlsearch = true vim.opt.ignorecase = true vim.opt.smartcase = true vim.opt.incsearch = true vim.opt.showmatch = true vim.opt.hidden = true -- Show the effects of substitutions incrementally vim.opt.inccommand = 'nosplit' -- enable mouse support, in a terminal app... i know crazy... vim.opt.mouse = 'a' -- use ripgrep instead of grep vim.opt.grepprg = 'rg --vimgrep --no-heading --smart-case' vim.opt.grepformat = '%f:%1:%c:%m' -- Show certain whitespace characters vim.opt.listchars = { tab='⯈ ',trail=' ',nbsp='␠',extends='⋯',precedes='⋯',space='⸱' } vim.opt.scrolloff = 3 -- make navigation from start of line to end of previous line more natural vim.opt.whichwrap:append('<>hl') -- do not spam the cmdline with every little input vim.opt.showcmd = false vim.opt.wildmode = 'list:longest' -- Set the current working directory to the parent of the active buffer vim.opt.autochdir = true -- Keep track of file changes outside of vim vim.opt.autoread = true -- Make backups of all touched files in a special directory vim.opt.backup = true vim.opt.writebackup = true vim.opt.backupcopy = 'auto' -- The magic slash at the end is important. -- It tells vim to use the absolute path in encoded form as the backup file -- name. vim.opt.backupdir = data_path .. '/backup/' if vim.fn.empty(vim.fn.glob(vim.o.backupdir)) > 0 then vim.fn.mkdir(vim.o.backupdir, 'p') end autocommand { backup_timestamp = [[BufWritePre * lua vim.opt.backupext = '@' .. vim.fn.strftime("%F.%H:%M") .. '.bak']], } -- set global swap directory, so that swap files do not pollute my workspace vim.opt.directory = data_path .. '/swap/' -- persit undo states across vim restarts vim.opt.undofile = true vim.opt.undodir = data_path .. '/undo/' -- ask me to force failed commands vim.opt.confirm = true vim.opt.completeopt = {'menuone', 'noinsert', 'noselect'} -- avoid showing messages during automomplete vim.opt.shortmess:append('c') -- open splits below and to the right of current buffers vim.opt.splitbelow = true vim.opt.splitright = true -- always show the signcolumn, because i don't like jumpy UIs vim.opt.signcolumn = 'yes' -- Use true colors vim.opt.termguicolors = true vim.opt.lazyredraw = true vim.opt.guifont = 'BlexMono NF:h13:1' -- Set cursor position to last known position, when entering a window autocommand { restore_cursor_position = [[ BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif ]], } -- Automatically enter and leave insert mode when opening/closing terminal buffers. autocommand { auto_enter_insert_on_terminal = { [[TermOpen,TermEnter * startinsert]], [[TermClose,TermLeave * stopinsert]], }, } -- briefly highlight yanked text autocommand { highlight_yanked_text = [[TextYankPost * silent! lua vim.highlight.on_yank()]], } -- Disable some built-in plugins we don't want local disabled_built_ins = { 'gzip', 'man', 'matchit', 'matchparen', 'shada_plugin', 'tar', 'tarPlugin', 'zip', 'zipPlugin', 'netrw', 'netrwPlugin', 'spec', '2html_plugin', } for _, built_in in ipairs(disabled_built_ins) do vim.g['loaded_' .. built_in] = 1 end -- Setting the width of the tab character to 2 local tab_size = 2 vim.opt.tabstop = tab_size vim.opt.shiftwidth = tab_size vim.opt.softtabstop = tab_size -- show status line and tabline vim.opt.laststatus = 2 vim.opt.showtabline = 2 -- convert tabs to spaces vim.opt.expandtab = true -- Keep indentation of new lines in line with previuos lines vim.opt.autoindent = true vim.opt.copyindent = true vim.opt.smartindent = true -- Do not display the cursorposition, since it can be shown when necesary 'g <C-G>' vim.opt.ruler = false -- How many milliseconds must pass before neovim decides I was "idle" vim.opt.updatetime = 250 -- How long to wait between key sequences in order to chain them. e.g. <LEADER>b vim.opt.timeoutlen = 350 -- I do not care for folding vim.opt.foldenable = false vim.opt.cursorline = true -- Highlight the cursor line in the current buffer autocommand({ show_cursor_line_in_active_window = { [[WinLeave * lua vim.opt.cursorline = false]], [[WinEnter * lua vim.opt.cursorline = true]], [[InsertEnter * lua vim.opt.cursorline = false]], [[InsertLeave * lua vim.opt.cursorline = true]], }, }) -- integrate Nushell with nvim -- all nushell builtins (ls, sys, etc.) print their output with escape codes, which nvim cannot parse. -- only time will tell if this will annoy me so much as to change it... vim.opt.shell = "nu" vim.opt.shellcmdflag = "--no-history --commands" vim.opt.shellpipe = "| save %s" vim.opt.shellredir = "| save %s" vim.opt.shellquote = "" vim.opt.shellxquote = "" -- insert whitespace type based on whitespace on previous line vim.opt.smarttab = true vim.opt.hlsearch = true vim.opt.ignorecase = true vim.opt.smartcase = true vim.opt.incsearch = true vim.opt.showmatch = true vim.opt.hidden = true -- Show the effects of substitutions incrementally vim.opt.inccommand = "nosplit" -- enable mouse support, in a terminal app... i know crazy... vim.opt.mouse = "a" -- use ripgrep instead of grep vim.opt.grepprg = "rg --vimgrep --no-heading --smart-case" vim.opt.grepformat = "%f:%1:%c:%m" -- Show certain whitespace characters vim.opt.listchars = { tab = "⯈ ", trail = " ", nbsp = "␠", extends = "⋯", precedes = "⋯", space = "⸱" } vim.opt.scrolloff = 3 -- make navigation from start of line to end of previous line more natural vim.opt.whichwrap:append("<>hl") -- do not spam the cmdline with every little input vim.opt.showcmd = false vim.opt.wildmode = "list:longest" -- Set the current working directory to the parent of the active buffer vim.opt.autochdir = false -- Keep track of file changes outside of vim vim.opt.autoread = true -- Make backups of all touched files in a special directory vim.opt.backup = true vim.opt.writebackup = true vim.opt.backupcopy = "auto" -- The magic slash at the end is important. -- It tells vim to use the absolute path in encoded form as the backup file -- name. vim.opt.backupdir = data_path .. "/backup/" if vim.fn.empty(vim.fn.glob(vim.o.backupdir)) > 0 then vim.fn.mkdir(vim.o.backupdir, "p") end autocommand({ backup_timestamp = [[BufWritePre * lua vim.opt.backupext = '@' .. vim.fn.strftime("%F.%H:%M") .. '.bak']], }) -- set global swap directory, so that swap files do not pollute my workspace vim.opt.directory = data_path .. "/swap/" -- persit undo states across vim restarts vim.opt.undofile = true vim.opt.undodir = data_path .. "/undo/" -- ask me to force failed commands vim.opt.confirm = true vim.opt.completeopt = { "menuone", "noinsert", "noselect" } -- avoid showing messages during automomplete vim.opt.shortmess:append("c") -- open splits below and to the right of current buffers vim.opt.splitbelow = true vim.opt.splitright = true -- always show the signcolumn, because i don't like jumpy UIs vim.opt.signcolumn = "yes" -- Use true colors vim.opt.termguicolors = true vim.opt.lazyredraw = true vim.opt.guifont = "BlexMono NF:h13:1" -- Set cursor position to last known position, when entering a window autocommand({ restore_cursor_position = [[ BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif ]], }) -- Automatically enter and leave insert mode when opening/closing terminal buffers. autocommand({ auto_enter_insert_on_terminal = { [[TermOpen,TermEnter * startinsert]], [[TermClose,TermLeave * stopinsert]], }, }) -- briefly highlight yanked text autocommand({ highlight_yanked_text = [[TextYankPost * silent! lua vim.highlight.on_yank()]], }) -- Disable some built-in plugins we don't want local disabled_built_ins = { "gzip", "man", "matchit", "matchparen", "shada_plugin", "tar", "tarPlugin", "zip", "zipPlugin", "netrw", "netrwPlugin", "spec", "2html_plugin", } for _, built_in in ipairs(disabled_built_ins) do vim.g["loaded_" .. built_in] = 1 end+56 / −46 text lines
-- But unfortunataly, by collecting them here, they are placed "far" from their logical place, i.e. the plugins configuration. -- Delegator over nvim_set_keymap, that sets some default options local map = function(mode, left_hand_side, right_hand_side, options) local default_options = { noremap = true, unique = true } if options then default_options = vim.tbl_extend('force', default_options, options) end vim.api.nvim_set_keymap( mode, left_hand_side, right_hand_side, default_options ) end -- Let the <LEADER> key be <SPACE> vim.g.mapleader = ' ' -- Delegator over nvim_set_keymap, that sets some default options -- TODO expose this function as module local map = function(mode, left_hand_side, right_hand_side, options) local default_options = { noremap = true, unique = true } if options then default_options = vim.tbl_extend("force", default_options, options) end vim.api.nvim_set_keymap(mode, left_hand_side, right_hand_side, default_options) end -- Let the <LEADER> key be <SPACE> vim.g.mapleader = " " map('n', '<LEADER>b', [[<CMD>Telescope buffers<CR>]]) cheatsheet 'LEADER + b => Select a buffer' map('n', '<LEADER>f', [[<CMD>Telescope file_browser<CR>]]) cheatsheet 'LEADER + f => Select a file' map('n', '<LEADER>e', [[<CMD>NvimTreeToggle<CR>]]) cheatsheet 'LEADER + e => Toggle file explorer' cheatsheet("") --Open up a URL under the cursor local opener_program = '' if vim.fn.has("mac") == 1 then opener_program = 'open' elseif vim.fn.has("unix") == 1 then opener_program = 'xdg-open' elseif vim.fn.has('win32') == 1 then opener_program = 'explorer' else -- What should we do on unknown platforms? We guess... opener_program = 'firefox' end map('n', 'gx', [[<CMD>lua require'spawn'(']] .. opener_program .. [[',{ vim.fn.expand('<cfile>') } )<CR>]]) cheatsheet'gx => Open URL under cursor' --Open up a URL under the cursor local opener_program = "" if vim.fn.has("mac") == 1 then opener_program = "open" elseif vim.fn.has("unix") == 1 then opener_program = "xdg-open" elseif vim.fn.has("win32") == 1 then opener_program = "explorer" else -- What should we do on unknown platforms? We guess... opener_program = "firefox" end map("n", "gx", [[<CMD>lua require'spawn'(']] .. opener_program .. [[',{ vim.fn.expand('<cfile>') } )<CR>]]) cheatsheet("gx => Open URL under cursor") cheatsheet("") cheatsheet("ALT + j => Move line(s) down") cheatsheet("ALT + k => Move line(s) up") map("n", "<A-j>", [[<CMD>move .+1<CR>==]]) map("n", "<A-k>", [[<CMD>move .-2<CR>==]]) map("i", "<A-j>", [[<ESC><CMD>move .+1<CR>==gi]]) map("i", "<A-k>", [[<ESC><CMD>move .-2<CR>==gi]]) map("x", "<A-j>", [[<ESC><CMD>'<,'>move'>+1<CR>gv=gv]]) map("x", "<A-k>", [[<ESC><CMD>'<,'>move'<-2<CR>gv=gv]]) -- Change behaviour of :terminal to be less like a vim buffer and more what I am used to map("t", "<ESC>", "<C-\\><C-n>") map("t", "<C-w>", "<ESC><C-w>") -- Clear highlighted search results whenever ESC is hit map("n", "<ESC>", ":nohlsearch<CR>", { unique = false, silent = true })+37 / −14 text lines
vim.api.nvim_buf_set_keymap(buffer_number, type, key, value, { noremap = true, silent = true }) --TODO: How to switch this configuration based upon if we are editing neovim configuration or just any Lua file/project? lsp.zls.setup({ on_attach = integrate_into_neovim }) --FIXME: Only works on Windows local helpers = require("null-ls.helpers") local methods = require("null-ls.methods") local prose_format = helpers.make_builtin({ method = methods.internal.FORMATTING, filetypes = { "markdown" }, generator_opts = { command = "prose", --FIXME this should be a higher order function, because the tab width needs to be lazily fetched at callsite and for the buffer instead of the global value. args = { "-f", "-w", "80", "-m", "-t", vim.o.tabstop }, to_stdin = true, }, factory = helpers.formatter_factory, }) debug = true, nls.builtins.formatting.stylua.with({ args = { "-s", "$FILENAME" }, to_stdin = false, }), nls.builtins.diagnostics.vale, nls.builtins.formatting.stylua, prose_format, -- this is a nice linter, but wihtout configuration, it spews too much nonsense. -- one can define the stdlib for vim in a config file, but the builtin selene does not find the config file. -- this is a general issue with formatters/linters integrated into neovim. -- how should i handle this? -- write a function, that searches the path to root for a config file? (internal stylua behaviour) -- somehow make sure, that vim root folder is always correct...? -- nls.builtins.diagnostics.selene,+14 / −14 text lines
-- The second function takes in the `autocommand` function and sets up the first function to automatically run before save.return function() return function() -- base directory of current buffer local directory = vim.fn.expand("%:p:h") if vim.fn.isdirectory(directory) == 0 then vim.fn.mkdir(directory, 'p') end end, function(autocommand) autocommand{setup_mkdir_before_save = [[ BufWritePre * lua require'mkdir'() ]]} endendreturn { run = function() -- base directory of current buffer local directory = vim.fn.expand("%:p:h") if vim.fn.isdirectory(directory) == 0 then vim.fn.mkdir(directory, "p") end end, setup = function(autocommand) autocommand({ setup_mkdir_before_save = [[ BufWritePre * lua require'mkdir'.run() ]] }) end,}+233 / −210 text lines
-- non_interactive:boolean => wether to show a display when updating plugins or not. Typically set to true, when nvim is used for scripting.return function(autocommand, data_path, non_interactive) local plugin_package = 'plugins' -- packer will be loaded into the optionals folder and loaded later on demand by `packadd packer.nvim` -- glob will normalize the path with respect to path separators. -- mixing those seems to sometimes trip up packer, though the reason is unknown. local packer_installation_path = vim.fn.glob( data_path .. '/site/pack/' .. plugin_package .. '/opt/packer.nvim' ) if vim.fn.empty(packer_installation_path) == 1 then vim.cmd( '!git clone https://github.com/wbthomason/packer.nvim "' .. packer_installation_path .. '"') end local packer = nil local init = function() -- lazy init the loading and configuration of packer if packer == nil then packer = require 'packer' packer.init { -- Do not create vim commands, because we will create our own, that delegate to the plugins module disable_commands = true, plugin_package = plugin_package, display = { non_interactive = non_interactive, open_fn = require('packer.util').float, }, profile = { enable = true, threshold = 1, -- the amount in ms that a plugins load time must be over for it to be included in the profile }, } end autocommand{ compile_plugins_glue = {'BufWritePost plugins.lua source <afile> | PluginsCompile' }, {'BufWritePost general_editor_settings.lua source <afile> | PluginsCompile'} } local use = packer.use -- reset packer in case we are reloading the whole configuration packer.reset()return function(data_path, non_interactive) local plugin_package = "plugins" -- packer will be loaded into the optionals folder and loaded later on demand by `packadd packer.nvim` -- glob will normalize the path with respect to path separators. -- mixing those seems to sometimes trip up packer, though the reason is unknown. local packer_installation_path = data_path .. "/site/pack/" .. plugin_package .. "/opt/packer.nvim" if vim.fn.empty(vim.fn.glob(packer_installation_path)) == 1 then vim.cmd('!git clone https://github.com/wbthomason/packer.nvim "' .. packer_installation_path .. '"') vim.cmd('packadd packer') end local packer = nil local init = function() -- lazy init the loading and configuration of packer if packer == nil then packer = require("packer") packer.init({ -- Do not create vim commands, because we will create our own, that delegate to the plugins module disable_commands = true, plugin_package = plugin_package, display = { non_interactive = non_interactive, open_fn = require("packer.util").float, }, profile = { enable = false, threshold = 1, -- the amount in ms that a plugins load time must be over for it to be included in the profile }, }) end local use = packer.use -- reset packer in case we are reloading the whole configuration packer.reset() -- Packer can manage itself use { 'wbthomason/packer.nvim', opt = true } -- colelction of icons configurations for various plugins use { 'yamatsum/nvim-nonicons', requires = { 'kyazdani42/nvim-web-devicons' } } -- Nice file tree browser use { 'kyazdani42/nvim-tree.lua', requires = { 'kyazdani42/nvim-web-devicons', opt = true}, config = function() vim.g.nvim_tree_side = 'left' vim.g.nvim_tree_width = 42 vim.g.nvim_tree_auto_open = 1 vim.g.nvim_tree_ignore_ft = {'cheatsheet'} end, } -- Display popup with possible keybindings to a command use { "folke/which-key.nvim", config = function() require("which-key").setup{} end } -- Pretty abstraction over quicklist, loclist, messages and lsp diagnostics use { 'folke/trouble.nvim', requires = { {'kyazdani42/nvim-web-devicons', opt = true}, -- pathes in some highlighting groups for LSP diagnostics -- FIXME should just be done by my theme istead of this plugin... { 'folke/lsp-colors.nvim' }}, config = function() require 'trouble'.setup() require("lsp-colors").setup({ Error = "#f05faf", Warning = "#c0af68", Information = "#2db8cf", Hint = "#19bc90" }) end } -- NVIM API for defining color schemes -- TODO: when profiling, this plugins loading times are high -- maybe the cause is that it loads a bunch of files -- should those be merged into one file? use { 'tjdevries/colorbuddy.vim', config = function() require'theme'(require'colorbuddy'.setup()) end, } -- Advanced parsers for better syntax highlighting use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdateSync', config = function() require'nvim-treesitter.install'.compilers = {"clang"} require'nvim-treesitter.configs'.setup{ ensure_installed = 'maintained', highlight = { enable = true }, incremental_selection = { enable = true }, indent = { enable = true }, query_linter = { enable = true }, } end, } use { 'nvim-treesitter/playground', run = ':TSInstall query' } -- Basic integration of ziglang use { 'ziglang/zig.vim', opt = true, ft = 'zig' } -- Move around the buffer with easy motions use 'phaazon/hop.nvim' -- Show the actual color of color codes and names -- #f00 => red -- #00ff00 => green -- Blue => blue -- use { 'norcalli/nvim-colorizer.lua', config = function() require'colorizer'.setup() end, } -- An attempt to clone magit use { 'TimUntersberger/neogit', opt= true, cmd = 'Neogit' } -- Fuzzy matcher use { 'nvim-telescope/telescope.nvim', requires = { 'nvim-lua/popup.nvim', 'nvim-lua/plenary.nvim' }, } -- Render markdown previews in the terminal use { 'npxbr/glow.nvim', opt = true, cmd = 'Glow', ft = {'markdown'} } -- Type :<number> to jump to line numbers use { 'nacro90/numb.nvim', config = function() require'numb'.setup{ show_numbers = false, show_cursorline = true, } end, } -- null-ls is a plugin, that allows to code custom functions, that get exposed as a lsp server use { "jose-elias-alvarez/null-ls.nvim", config = function() -- This will configure all LSPs not only Null-ls. -- But because Null-ls depends on lspconfig, we have to delay this require'lsp'(require'autocommand') end, requires = {"nvim-lua/plenary.nvim", "neovim/nvim-lspconfig"} } -- Utility functions to glue the status messages of LSP servers with the status line in nvim together use 'nvim-lua/lsp-status.nvim' -- Deeper integration of JDTLS from Eclipse with nvim -- DO NOT use simultanously with jdtls from lspconfig! -- TODO: integrate with nvim-dap debugger -- use { 'mfussenegger/nvim-jdtls', opt = true } -- Completions support, that integrates advanced nvim features (LSP+treesitter) use { 'nvim-lua/completion-nvim' } -- trim trailing whitespace on save use { 'cappyzawa/trim.nvim', config = function() require'trim'.setup{ disable = {"markdown"} } end, } -- Nicer view than :registers, also shows popup on CTRL-R in I-mode use { 'tversteeg/registers.nvim', opt = true, command = 'Registers', keys = {'i', '<C-R>'} } -- comment and uncomment lines use { 'b3nj5m1n/kommentary' } -- smooth scrolling -- TODO: configure mappings to overide duration -- currently the scroll steps a pretty slow use { 'karb94/neoscroll.nvim', config = function() require('neoscroll').setup({ -- All these keys will be mapped. Pass an empty table ({}) for no mappings mappings = {'<C-u>', '<C-d>', '<C-b>', '<C-f>', '<C-y>', '<C-e>', 'zt', 'zz', 'zb'}, hide_cursor = true, -- Hide cursor while scrolling stop_eof = true, -- Stop at <EOF> when scrolling downwards respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further easing_function = 'circular', -- Interpolation of scroll animation steps }) end, } -- fancy status line below use { 'hoob3rt/lualine.nvim', requires = { 'kyazdani42/nvim-web-devicons', opt = true }, config = function() require'lualine'.setup{ options = { theme = 'modus_vivendi', icons_enabled = true, extensions = { 'nvim-tree', 'quickfix' } }, sections = { lualine_c = { "os.data('%a')", 'data', require'lsp-status'.status } } } end, } end -- the plugin module always delegates to packer, ensuring that at all times init configures packer correctly local plugins = setmetatable({}, { __index = function(_, key) init() return packer[key] end, }) return plugins -- Packer can manage itself use({ "wbthomason/packer.nvim", opt = true }) -- Nice file tree browser use({ "kyazdani42/nvim-tree.lua", requires = { "kyazdani42/nvim-web-devicons", opt = true }, config = function() vim.g.nvim_tree_side = "left" vim.g.nvim_tree_width = 42 vim.g.nvim_tree_auto_open = 1 vim.g.nvim_tree_ignore_ft = { "cheatsheet" } -- disable git because slow vim.g.nvim_tree_git_hl = 0 vim.g.nvim_tree_gitignore = 0 vim.g.nvim_tree_show_icons = { git = 0, folders = 1, files = 1, } end, }) -- Display popup with possible keybindings to a command use({ "folke/which-key.nvim", config = function() require("which-key").setup({}) end, }) -- Pretty abstraction over quicklist, loclist, messages and lsp diagnostics use({ "folke/trouble.nvim", cmd = { "Trouble", "TroubleClose", "TroubleRefresh", "TroubleToggle" }, requires = { { "kyazdani42/nvim-web-devicons", opt = true }, -- patches in some highlighting groups for LSP diagnostics -- FIXME should just be done by my theme instead of this plugin... { "folke/lsp-colors.nvim" }, }, config = function() require("trouble").setup() require("lsp-colors").setup({ Error = "#f05faf", Warning = "#c0af68", Information = "#2db8cf", Hint = "#19bc90", }) end, }) -- TODO learn to configure minimal status line and tabline -- NVIM API for defining color schemes -- TODO: when profiling, this plugins loading times are high -- maybe the cause is that it loads a bunch of files -- should those be merged into one file? use({ "tjdevries/colorbuddy.vim", config = function() require("theme")(require("colorbuddy").setup()) end, }) -- Advanced parsers for better syntax highlighting use({ "nvim-treesitter/nvim-treesitter", config = function() require("nvim-treesitter.install").compilers = { "clang" } require("nvim-treesitter.configs").setup({ ensure_installed = { "zig", "java", "rust", "lua", "toml", "yaml", "json", "c" }, highlight = { enable = true }, incremental_selection = { enable = true, keymaps = { init_selection = "<C-Up>", node_incremental = "<C-Up>", node_decremental = "<C-Down>", scope_incremental = "<A-Up>", }, }, indent = { enable = true }, query_linter = { enable = true, use_virtual_text = true, lint_events = { "BufWrite" } }, }) end, }) -- Treesitter Playground -- Show the treesitter parse tree. -- Lint syntax errors -- Show highlight groupsunder cursor use({ "nvim-treesitter/playground", config = function() local cheatsheet = require("cheatsheet").print cheatsheet("") cheatsheet( ":TSHighlightCapturesUnderCursor => This command shows the highlight group under the cursor, when TreeSitter is used" ) end, }) -- Basic integration of ziglang use({ "ziglang/zig.vim", opt = true, ft = "zig" }) -- Move around the buffer with easy motions use("phaazon/hop.nvim") -- Show the actual color of color codes and names -- #f00 => red -- #00ff00 => green -- Blue => blue -- use({ "norcalli/nvim-colorizer.lua", config = function() require("colorizer").setup() end, }) -- Fuzzy matcher use({ "nvim-telescope/telescope.nvim", requires = { "nvim-lua/popup.nvim", "nvim-lua/plenary.nvim" }, }) -- Type :<number> to jump to line numbers use({ "nacro90/numb.nvim", config = function() require("numb").setup({ show_numbers = false, show_cursorline = true, }) end, }) -- null-ls is a plugin, that allows to code custom functions, that get exposed as a lsp server use({ "jose-elias-alvarez/null-ls.nvim", config = function() -- This will configure all LSPs not only Null-ls. -- But because Null-ls depends on lspconfig, we have to delay this require("lsp")() end, requires = { -- extensions to the std lib "nvim-lua/plenary.nvim", -- Preprepared collection of glue code for neovim lsp-client and thrid party lsp servers. "neovim/nvim-lspconfig", -- Completions support, that integrates advanced nvim features (LSP+treesitter) "nvim-lua/completion-nvim", }, }) -- Deeper integration of JDTLS from Eclipse with nvim -- DO NOT use simultanously with jdtls from lspconfig! -- TODO: integrate with nvim-dap debugger -- use { 'mfussenegger/nvim-jdtls', opt = true } -- -- Nicer view than :registers, also shows popup on CTRL-R in I-mode use({ "tversteeg/registers.nvim", opt = true, command = "Registers", keys = { "i", "<C-R>" } }) -- comment and uncomment lines use({ "b3nj5m1n/kommentary" }) -- smooth scrolling -- TODO: configure mappings to overide duration -- currently the scroll steps a pretty slow use({ "karb94/neoscroll.nvim", config = function() require("neoscroll").setup({ -- All these keys will be mapped. Pass an empty table ({}) for no mappings mappings = { "<C-u>", "<C-d>", "<C-b>", "<C-f>", "<C-y>", "<C-e>", "zt", "zz", "zb" }, hide_cursor = true, -- Hide cursor while scrolling stop_eof = true, -- Stop at <EOF> when scrolling downwards respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further easing_function = "circular", -- Interpolation of scroll animation steps }) end, }) -- ASCII diagram drawing use({ "jbyuki/venn.nvim", opt = true, command = "VBox", }) end -- the plugin module always delegates to packer, ensuring that at all times init configures packer correctly local plugins = setmetatable({}, { __index = function(_, key) init() return packer[key] end, }) return plugins+86 / −1 text lines
return function() endlocal branch_icon = ""local vcs_branch_name = ""local special_windows = { intro = { "CheatSheet", "" }, NvimTree = { "Files", "" }, packer = { "Plugins", "" }, help = { "Help", "龎" },}local lsp_symbols = { Error = "", Information = "", Warning = "", Hint = "" }local get_lsp_diagnostics_count = function() local diagnostics_count = "" for type, icon in pairs(lsp_symbols) do local count = vim.lsp.diagnostic.get_count(0, type) local highlight = "%#LspDiagnosticsDefault" .. type .. "#" local rendered_count = count > 0 and highlight .. icon .. " " .. count .. " " or "" diagnostics_count = diagnostics_count .. rendered_count end return diagnostics_countendreturn { -- refresh the statuslines of all windows. -- the current window gets special treatment. it is "active". update_statuslines = function() for _, window_number in pairs(vim.api.nvim_list_wins()) do if vim.api.nvim_get_current_win() == window_number then vim.opt.statusline = [[%!v:lua.require'statusline'.render("current")]] elseif vim.api.nvim_buf_get_name(0) ~= "" then vim.opt.statusline = [[%!v:lua.require'statusline'.render()]] end end end, -- update the vcs branch name, if vcs is available update_vcs_branch_name = function() if not pcall(require, "plenary") then return "" end require("plenary.job") :new({ command = "git", args = { "branch", "--show-current" }, cwd = vim.fn.expand("%:p:h"), -- parent directory of current buffer on_exit = function(output) local result = output:result()[1] if result then vcs_branch_name = "%#LineNr#%=" .. branch_icon .. " " .. result else vcs_branch_name = "" end end, }) :start() end, -- generate the statusline string render = function(active) local filetype = vim.bo.filetype local special_window = special_windows[filetype] if active and special_window then return "%#LineNr#%=" .. special_window[2] .. " " .. special_window[1] .. "%=" end local edited = vim.bo.mod and "" or "" local modifiable = vim.bo.modifiable and "" or "" local diagnostics = get_lsp_diagnostics_count() local statusline = "%#Statusline" .. (active and "" or "NC") .. "#" .. edited .. " " .. modifiable .. " " .. "%F" -- full file path .. (diagnostics ~= "" and " " .. diagnostics .. " " or " ") .. (active and vcs_branch_name or "") return statusline end, -- setup a custom statusline setup = function(autocommand) autocommand({ update_statusline = "CursorHold,CursorHoldI * lua require'statusline'.update_statuslines()", update_vcs_branch_name = "BufEnter,BufWinEnter,WinEnter,BufReadPost * lua require'statusline'.update_vcs_branch_name()", }) end,}deleted file mode 100644+0 / −9 text lines
new file mode 100644+55 / −0 text lines
-- this module renders and sets up a custom tabline.-- this tabline is similar to the default one except:-- * it only shows simple base file names-- * the modified state has a different icon-- * it uses nvim-web-devicons, if available-- gets a file icon based on extension and/or name-- tries to use nvim-web-devicons, otherwise falls back to some default iconlocal get_icon = function(name, extension) if pcall(require, "nvim-web-devicons") then return require"nvim-web-devicons".get_icon(name ,extension, {default=true}) end return ""end-- this function renders the tabline and is meant to be set as an expression into the `tabline` optionreturn { render = function() local buffer_names_to_ignore = {'NvimTree'} local tabline = "" -- FIXME change this to tabpage instead of buf for _, buffer_number in pairs(vim.api.nvim_list_bufs()) do if vim.api.nvim_buf_is_valid(buffer_number) and vim.api.nvim_buf_is_loaded(buffer_number) then local modified = vim.bo.modified and "" or " " -- we only care about the last part of the path local stylish_buffer_name = vim.api.nvim_buf_get_name(buffer_number):match(".-([^\\/]-)$") or "" if vim.tbl_contains(buffer_names_to_ignore, stylish_buffer_name) or stylish_buffer_name == "" then goto continue end local icon = ""--FIXME this is the wrong way to handle new empty buffers: how to do it whithout showing tabs for all kinds of auxillary buffers (checkhealt for example)--[[ if stylish_buffer_name == "" thenstylish_buffer_name = "no name" icon = "" ]] if stylish_buffer_name == "cheatsheet" then icon = "" else local extension = stylish_buffer_name:match("%w+%.(.+)") icon = get_icon(stylish_buffer_name, extension) end stylish_buffer_name = " " .. stylish_buffer_name .. " " local is_current_buffer = vim.api.nvim_get_current_buf() == buffer_number tabline = tabline .. "%#TabLine" .. (is_current_buffer and "Sel" or "") .. "#" .. " " .. icon .. stylish_buffer_name .. (is_current_buffer and modified or " ") end -- goto here to return early from one iteration step of the for loop ::continue:: end return tabline .. "%#TabLineFill#"end, setup = function() -- set tabline to a custom rendering -- sets the tabline with some crazy vimscript syntax? -- my guess: this reevaluates this code snippet any time nvim requests a fresh tabline vim.opt.tabline = [[%!v:lua.require'tabline'.render()]]end}deleted file mode 100644+0 / −6 text lines
return function(Group, groups, colors, styles) Group.new('DiffAdd', colors.normal, colors.none, styles.NONE) Group.new('DiffChange', colors.normal, colors.none, styles.NONE) Group.new('DiffDelete', colors.normal, colors.none, styles.NONE) Group.new('DiffText', colors.normal, colors.none, styles.NONE)end+39 / −26 text lines
-- TODO: manage background light and dark -- -- let us first create some colors, that will later be mapped to highlight groups -- these will be saved in the `colors` table Color.new('important', '#e0e0e0') Color.new('normal', '#adadad') Color.new('minor', '#7c7c7c') Color.new('nonessential', '#4f4f4f') -- TODO: manage background light and dark -- -- let us first create some colors, that will later be mapped to highlight groups -- these will be saved in the `colors` table Color.new("important", "#e0e0e0") Color.new("normal", "#adadad") Color.new("minor", "#7c7c7c") Color.new("nonessential", "#4f4f4f") require 'theme.terminal_colors'(Group, groups, colors, styles) require 'theme.nvim_editor_colors'(Group, groups, colors, styles) require 'theme.lsp_colors'(Group, groups, colors, styles) require 'theme.treesitter_colors'(Group, groups, colors, styles) require 'theme.java_colors'(Group, groups, colors, styles) require 'theme.lua_colors'(Group, groups, colors, styles) require 'theme.nvim_tree_colors'(Group, groups, colors, styles) require 'theme.diff_colors'(Group, groups, colors, styles) -- TERMINAL COLORS vim.g.terminal_color_0 = "#555555" vim.g.terminal_color_1 = "#FB467B" vim.g.terminal_color_2 = "#B8EE92" vim.g.terminal_color_3 = "#FFCC00" vim.g.terminal_color_4 = "#56D6D6" vim.g.terminal_color_5 = "#B954B8" vim.g.terminal_color_6 = "#00D5A7" vim.g.terminal_color_7 = "#CED5E5" vim.g.terminal_color_8 = "5555555" vim.g.terminal_color_9 = "#FB467B" vim.g.terminal_color_10 = "#B8EE92" vim.g.terminal_color_11 = "#FFCC00" vim.g.terminal_color_12 = "#56D6D6" vim.g.terminal_color_13 = "#B954B8" vim.g.terminal_color_14 = "#00D5A7" vim.g.terminal_color_15 = "#CED5E5" require("theme.nvim_editor_colors")(Group, groups, colors, styles) require("theme.lsp_colors")(Group, groups, colors, styles) require("theme.treesitter_colors")(Group, groups, colors, styles)deleted file mode 100644+0 / −18 text lines
return function(Group, _groups, colors, styles) Group.new('javaOperator', colors.normal, colors.none, styles.NONE) Group.new('javaVarArg', colors.normal, colors.none, styles.NONE) Group.new('javaParen', colors.normal, colors.none, styles.NONE) Group.new('javaParen1', colors.normal, colors.none, styles.NONE) Group.new('javaParen2', colors.normal, colors.none, styles.NONE) Group.new('javaParen3', colors.normal, colors.none, styles.NONE) Group.new('javaParen4', colors.normal, colors.none, styles.NONE) Group.new('javaParen5', colors.normal, colors.none, styles.NONE) Group.new('javaAnnotation', colors.normal, colors.none, styles.NONE) Group.new('javaDocTags', colors.normal, colors.none, styles.NONE) Group.new( 'javaCommentTitle', colors.important, colors.none, styles.bold + styles.underline )end+20 / −110 text lines
Group.new( 'LspDiagnosticsVirtualTextHint', colors.normal, colors.none, styles.NONE ) Group.new( 'LspDiagnosticsSignWarning', colors.normal, colors.none, styles.NONE ) Group.new( 'LspDiagnosticsSignInformation', colors.normal, colors.none, styles.NONE ) Group.new('LspDiagnosticsSignHint', colors.normal, colors.none, styles.NONE) Group.new( 'LspDiagnosticsFloatingHint', colors.normal, colors.none, styles.underline ) Group.new('LspDiagnosticsSignError', colors.normal, colors.none, styles.NONE) Group.new( 'LspDiagnosticsDefaultWarning', colors.normal, colors.none, styles.NONE ) Group.new( 'LspDiagnosticsDefaultError', colors.normal, colors.none, styles.NONE ) Group.new( 'LspDiagnosticsFloatingError', colors.normal, colors.none, styles.underline ) Group.new( 'LspDiagnosticsFloatingWarning', colors.normal, colors.none, styles.underline ) Group.new( 'LspDiagnosticsFloatingInformation', colors.normal, colors.none, styles.underline ) Group.new( 'LspDiagnosticsUnderlineInformation', colors.normal, colors.none, styles.underline ) Group.new( 'LspDiagnosticsUnderlineHint', colors.normal, colors.none, styles.underline ) Group.new( 'LspDiagnosticsDefaultInformation', colors.normal, colors.none, styles.NONE ) Group.new( 'LspDiagnosticsDefaultHint', colors.normal, colors.none, styles.NONE ) Group.new( 'LspDiagnosticsUnderlineError', colors.normal, colors.none, styles.underline ) Group.new( 'LspDiagnosticsVirtualTextError', colors.normal, colors.none, styles.NONE ) Group.new( 'LspDiagnosticsVirtualTextWarning', colors.normal, colors.none, styles.NONE ) Group.new( 'LspDiagnosticsVirtualTextInformation', colors.normal, colors.none, styles.NONE ) Group.new( 'LspDiagnosticsUnderlineWarning', colors.normal, colors.none, styles.underline ) Group.new("LspDiagnosticsVirtualTextHint", colors.normal, colors.none, styles.NONE) Group.new("LspDiagnosticsSignWarning", colors.warning, colors.none, styles.NONE) Group.new("LspDiagnosticsSignInformation", colors.normal, colors.none, styles.NONE) Group.new("LspDiagnosticsSignHint", colors.normal, colors.none, styles.NONE) Group.new("LspDiagnosticsFloatingHint", colors.normal, colors.none, styles.underline) Group.new("LspDiagnosticsSignError", colors.error, colors.none, styles.NONE) Group.new("LspDiagnosticsDefaultWarning", colors.warning, colors.none, styles.NONE) Group.new("LspDiagnosticsDefaultError", colors.error, colors.none, styles.NONE) Group.new("LspDiagnosticsFloatingError", colors.error, colors.none, styles.underline) Group.new("LspDiagnosticsFloatingWarning", colors.warning, colors.none, styles.underline) Group.new("LspDiagnosticsFloatingInformation", colors.normal, colors.none, styles.underline) Group.new("LspDiagnosticsUnderlineInformation", colors.normal, colors.none, styles.underline) Group.new("LspDiagnosticsUnderlineHint", colors.normal, colors.none, styles.underline) Group.new("LspDiagnosticsDefaultInformation", colors.normal, colors.none, styles.NONE) Group.new("LspDiagnosticsDefaultHint", colors.normal, colors.none, styles.NONE) Group.new("LspDiagnosticsUnderlineError", colors.error, colors.none, styles.underline) Group.new("LspDiagnosticsVirtualTextError", colors.error, colors.none, styles.NONE) Group.new("LspDiagnosticsVirtualTextWarning", colors.normal, colors.none, styles.NONE) Group.new("LspDiagnosticsVirtualTextInformation", colors.normal, colors.none, styles.NONE) Group.new("LspDiagnosticsUnderlineWarning", colors.normal, colors.none, styles.underline)deleted file mode 100644+0 / −6 text lines
return function(Group, groups, colors, styles) Group.new('luaFunction', colors.normal, colors.none, styles.NONE) Group.new('luaTable', colors.normal, colors.none, styles.NONE) Group.new('luaIn', colors.normal, colors.none, styles.NONE) Group.new('luastatement', colors.normal, colors.none, styles.NONE)end+92 / −127 text lines
Group.new("Comment", colors.important, colors.none, styles.bold + styles.italic) Group.new('Constant', colors.debug, colors.none, styles.NONE) Group.new('String', colors.normal, colors.none, styles.bold + styles.italic) Group.new('Character', groups.String, groups.String, groups.String) Group.new('Number', groups.String, groups.String, groups.String) Group.new('Float', groups.String, groups.String, groups.String) Group.new('Boolean', groups.String, groups.String, groups.String) Group.new("Constant", colors.normal, colors.none, styles.bold) Group.new("String", colors.normal, colors.none, styles.bold + styles.italic) Group.new("Character", groups.String, groups.String, groups.String) Group.new("Number", groups.String, groups.String, groups.String) Group.new("Float", groups.String, groups.String, groups.String) Group.new("Boolean", groups.String, groups.String, groups.String) Group.new('Statement', colors.minor, colors.none, styles.italic) Group.new('Conditional', groups.Statement, groups.Statement, groups.Statement) Group.new('Repeat', groups.Statement, groups.Statement, groups.Statement) Group.new( 'Label', groups.Statement, groups.Statement, groups.Statement + styles.underline ) Group.new('Operator', groups.Statement, groups.Statement, groups.Statement) Group.new('Keyword', groups.Statement, groups.Statement, groups.Statement) Group.new('Exception', groups.Statement, groups.Statement, groups.Statement) Group.new("Statement", colors.minor, colors.none, styles.italic) Group.new("Conditional", groups.Statement, groups.Statement, groups.Statement) Group.new("Repeat", groups.Statement, groups.Statement, groups.Statement) Group.new("Label", groups.Statement, groups.Statement, groups.Statement + styles.underline) Group.new("Operator", groups.Statement, groups.Statement, groups.Statement) Group.new("Keyword", groups.Statement, groups.Statement, groups.Statement) Group.new("Exception", groups.Statement, groups.Statement, groups.Statement) Group.new('PreProc', groups.Statement, groups.Statement, groups.Statement) Group.new('Include', groups.PreProc, groups.PreProc, groups.PreProc) Group.new('Define', groups.PreProc, groups.PreProc, groups.PreProc) Group.new('Macro', groups.PreProc, groups.PreProc, groups.PreProc) Group.new('PreCondit', groups.PreProc, groups.PreProc, groups.PreProc) Group.new("PreProc", groups.Statement, groups.Statement, groups.Statement) Group.new("Include", groups.PreProc, groups.PreProc, groups.PreProc) Group.new("Define", groups.PreProc, groups.PreProc, groups.PreProc) Group.new("Macro", groups.PreProc, groups.PreProc, groups.PreProc) Group.new("PreCondit", groups.PreProc, groups.PreProc, groups.PreProc) Group.new('Special', colors.minor, colors.none, styles.NONE) Group.new('SpecialKey', colors.normal, colors.none, styles.italic) Group.new('SpecialComment', colors.accent_strong, colors.none, styles.bold) Group.new('Tag', groups.Special, groups.Special, groups.Special) Group.new('Delimiter', groups.Special, groups.Special, groups.Special) Group.new('Debug', groups.Special, groups.Special, groups.Special) Group.new("Special", colors.minor, colors.none, styles.NONE) Group.new("SpecialKey", colors.normal, colors.none, styles.italic) Group.new("SpecialComment", colors.accent_strong, colors.none, styles.bold) Group.new("Tag", groups.Special, groups.Special, groups.Special) Group.new("Delimiter", groups.Special, groups.Special, groups.Special) Group.new("Debug", groups.Special, groups.Special, groups.Special) Group.new('Underlined', colors.accent_strong, colors.none, styles.underline) Group.new('Ignore', colors.debug, colors.none, styles.NONE) Group.new('Error', colors.error, colors.none, styles.bold + styles.underline) Group.new( 'Todo', colors.accent_strong, colors.none, styles.bold + styles.underline ) Group.new("Underlined", colors.accent_strong, colors.none, styles.underline) Group.new("Ignore", colors.debug, colors.none, styles.NONE) Group.new("Error", colors.error, colors.none, styles.bold + styles.underline) Group.new("Todo", colors.accent_strong, colors.none, styles.bold + styles.underline) -- NVIM UI Group.new( 'NvimInternalError', colors.error, colors.none, styles.bold + styles.underline ) Group.new('ErrorMsg', colors.error, colors.none, styles.bold) Group.new('WarningMsg', colors.warning, colors.none, styles.bold) Group.new('MoreMsg', colors.information, colors.none, styles.NONE) Group.new('ModeMsg', colors.information, colors.none, styles.NONE) Group.new('Question', colors.information, colors.none, styles.bold) Group.new('MsgSeparator', colors.ui_minor, colors.none, styles.NONE) Group.new('MsgArea', colors.ui_normal, colors.none, styles.NONE) -- NVIM UI Group.new("NvimInternalError", colors.error, colors.none, styles.bold + styles.underline) Group.new("ErrorMsg", colors.error, colors.none, styles.bold) Group.new("WarningMsg", colors.warning, colors.none, styles.bold) Group.new("MoreMsg", colors.information, colors.none, styles.NONE) Group.new("ModeMsg", colors.information, colors.none, styles.NONE) Group.new("Question", colors.information, colors.none, styles.bold) Group.new("MsgSeparator", colors.ui_minor, colors.none, styles.NONE) Group.new("MsgArea", colors.ui_normal, colors.none, styles.NONE) Group.new('EndOfBuffer', colors.nonessential, colors.none, styles.NONE) Group.new('LineNr', colors.nonessential, colors.none, styles.NONE) Group.new('CursorLineNr', colors.ui_normal, colors.none, styles.NONE) Group.new('CursorColumn', colors.none, colors.none, styles.inverse) Group.new('CursorLine', colors.none, colors.accent_weak, styles.NONE) Group.new('TermCursor', colors.none, colors.none, styles.inverse) Group.new('TermCursorNC', colors.none, colors.none, styles.NONE) Group.new('Cursor', colors.none, colors.none, styles.reverse) Group.new('lCursor', groups.Cursor, groups.Cursor, groups.Cursor) Group.new('ColorColumn', colors.none, colors.ui_normal, styles.NONE) Group.new('Visual', colors.accent_strong, colors.none, styles.NONE) Group.new('VisualNC', colors.accent_weak, colors.none, styles.NONE) Group.new('Conceal', colors.debug, colors.none, styles.NONE) Group.new('Substitute', colors.information, colors.none, styles.NONE) Group.new('MatchParen', colors.accent_strong, colors.none, styles.bold) Group.new("EndOfBuffer", colors.nonessential, colors.none, styles.NONE) Group.new("LineNr", colors.nonessential, colors.none, styles.NONE) Group.new("CursorLineNr", colors.ui_normal, colors.none, styles.NONE) Group.new("CursorColumn", colors.none, colors.accent_weak, styles.NONE) Group.new("CursorLine", colors.none, colors.accent_weak, styles.NONE) Group.new("TermCursor", colors.none, colors.none, styles.inverse) Group.new("TermCursorNC", colors.none, colors.none, styles.NONE) Group.new("Cursor", colors.none, colors.none, styles.reverse) Group.new("lCursor", groups.Cursor, groups.Cursor, groups.Cursor) Group.new("ColorColumn", colors.none, colors.ui_normal, styles.NONE) Group.new("Visual", colors.accent_strong, colors.accent_weak, styles.NONE) Group.new("VisualNC", colors.accent_weak, colors.none, styles.NONE) Group.new("Conceal", colors.debug, colors.none, styles.NONE) Group.new("Substitute", colors.information, colors.none, styles.NONE) Group.new("MatchParen", colors.accent_strong, colors.none, styles.bold) Group.new('IncSearch', colors.ui_important, colors.none, styles.underline) Group.new('Search', colors.important, colors.ui_important, styles.NONE) Group.new('VertSplit', colors.ui_normal, colors.none, styles.NONE) Group.new('WildMenu', colors.ui_normal, colors.none, styles.NONE) Group.new('Folded', colors.nonessential, colors.none, styles.NONE) Group.new('FoldColumn', colors.ui_normal, colors.none, styles.NONE) Group.new('SignColumn', colors.ui_normal, colors.none, styles.NONE) Group.new('StatusLine', colors.nonessential, colors.none, styles.NONE) Group.new('StatusLineNC', colors.none, colors.none, styles.NONE) Group.new('Pmenu', colors.ui_normal, colors.none, styles.NONE) Group.new('PmenuSel', colors.ui_important, colors.none, styles.underline) Group.new('PmenuSbar', colors.ui_minor, colors.none, styles.NONE) Group.new('PmenuThumb', colors.ui_important, colors.none, styles.NONE) Group.new('TabLine', colors.ui_normal, colors.none, styles.none) Group.new( 'TabLineSel', colors.ui_important, colors.none, styles.bold + styles.underline ) Group.new('TabLineFill', colors.ui_minor, colors.none, styles.NONE) Group.new('QuickFixLine', colors.ui_normal, colors.none, styles.NONE) Group.new("IncSearch", colors.ui_important, colors.none, styles.underline) Group.new("Search", colors.important, colors.ui_important, styles.NONE) Group.new("VertSplit", colors.ui_normal, colors.none, styles.NONE) Group.new("WildMenu", colors.ui_normal, colors.none, styles.NONE) Group.new("Folded", colors.nonessential, colors.none, styles.NONE) Group.new("FoldColumn", colors.ui_minor, colors.none, styles.NONE) Group.new("SignColumn", colors.ui_minor, colors.none, styles.NONE) Group.new("StatusLine", colors.ui_minor, colors.none, styles.NONE) Group.new("StatusLineNC", colors.nonessential, colors.none, styles.NONE) Group.new("Pmenu", colors.ui_normal, colors.none, styles.NONE) Group.new("PmenuSel", colors.ui_important, colors.none, styles.underline) Group.new("PmenuSbar", colors.ui_minor, colors.none, styles.NONE) Group.new("PmenuThumb", colors.ui_important, colors.none, styles.NONE) Group.new("TabLine", colors.ui_normal, colors.none, styles.none) Group.new("TabLineSel", colors.ui_important, colors.none, styles.bold + styles.reverse) Group.new("TabLineFill", colors.none, colors.none, styles.NONE) Group.new("QuickFixLine", colors.ui_normal, colors.none, styles.NONE) Group.new('RedrawDebugNormal', colors.debug, colors.none, styles.NONE) Group.new('RedrawDebugClear', colors.debug, colors.none, styles.NONE) Group.new('RedrawDebugComposed', colors.debug, colors.none, styles.NONE) Group.new('RedrawDebugRecompose', colors.debug, colors.none, styles.NONE) Group.new("RedrawDebugNormal", colors.debug, colors.none, styles.NONE) Group.new("RedrawDebugClear", colors.debug, colors.none, styles.NONE) Group.new("RedrawDebugComposed", colors.debug, colors.none, styles.NONE) Group.new("RedrawDebugRecompose", colors.debug, colors.none, styles.NONE)deleted file mode 100644+0 / −8 text lines
return function(Group, groups, colors, styles) Group.new('NvimTreeFolderName', colors.normal, colors.none, styles.NONE) Group.new('NvimTreeFolderIcon', colors.normal, colors.none, styles.NONE) Group.new('NvimTreeExecFile', colors.normal, colors.none, styles.NONE) Group.new('NvimTreeImageFile', colors.normal, colors.none, styles.NONE) Group.new('NvimTreeEmptyFolderName', colors.normal, colors.none, styles.NONE) Group.new('NvimTreeIndentMarker', colors.normal, colors.none, styles.NONE)enddeleted file mode 100644+0 / −18 text lines
return function(...) vim.g.terminal_color_0 = '#555555' vim.g.terminal_color_1 = '#FB467B' vim.g.terminal_color_2 = '#B8EE92' vim.g.terminal_color_3 = '#FFCC00' vim.g.terminal_color_4 = '#56D6D6' vim.g.terminal_color_5 = '#B954B8' vim.g.terminal_color_6 = '#00D5A7' vim.g.terminal_color_7 = '#CED5E5' vim.g.terminal_color_8 = '5555555' vim.g.terminal_color_9 = '#FB467B' vim.g.terminal_color_10 = '#B8EE92' vim.g.terminal_color_11 = '#FFCC00' vim.g.terminal_color_12 = '#56D6D6' vim.g.terminal_color_13 = '#B954B8' vim.g.terminal_color_14 = '#00D5A7' vim.g.terminal_color_15 = '#CED5E5'end+74 / −40 text lines
Group.new('TSFloat', groups.Float, groups.Float, groups.Float) Group.new('TSFunction', groups.Function, groups.Function, groups.Function) Group.new('TSType', groups.Type, groups.Type, groups.Type) Group.new('TSTypeBuiltin', groups.Type, groups.Type, groups.Type) Group.new('TSLabel', groups.Label, groups.Label, groups.Label) Group.new('TSCharacter', groups.Character, groups.Character, groups.Character) Group.new( 'TSConditional', groups.Conditional, groups.Conditional, groups.Conditional ) Group.new('TSConstant', groups.Constant, groups.Constant, groups.Constant) Group.new('TSConstBuiltin', groups.Constant, groups.Constant, groups.Constant) Group.new('TSConstMacro', groups.Constant, groups.Constant, groups.Constant) Group.new('TSFuncBuiltin', groups.Function, groups.Function, groups.Function) Group.new('TSMethod', groups.Function, groups.Function, groups.Function) Group.new('TSStructure', groups.Structure, groups.Structure, groups.Structure) Group.new( 'TSTagDelimiter', groups.Delimiter, groups.Delimiter, groups.Delimiter ) Group.new('TSNumber', groups.Number, groups.Number, groups.Number) Group.new('TSFuncMacro', groups.Function, groups.Function, groups.Function) Group.new('TSInclude', groups.Include, groups.Include, groups.Include) Group.new('TSKeyword', groups.Keyword, groups.Keyword, groups.Keyword) Group.new('TSException', groups.Exception, groups.Exception, groups.Exception) Group.new('TSBoolean', groups.Boolean, groups.Boolean, groups.Boolean) Group.new('TSError', groups.Error, groups.Error, groups.Error) Group.new('TSString', groups.String, groups.String, groups.String) Group.new('TSStringEscape', colors.normal, colors.none, styles.NONE) Group.new('TSStringRegex', colors.normal, colors.none, styles.NONE) Group.new('TSField', colors.normal, colors.none, styles.NONE) Group.new('TSParameter', colors.normal, colors.none, styles.NONE) Group.new('TSVariable', colors.normal, colors.none, styles.bold) Group.new('TSPunctBracket', colors.normal, colors.none, styles.NONE) Group.new('TSOperator', colors.normal, colors.none, styles.NONE) Group.new('TSProperty', colors.normal, colors.none, styles.NONE) Group.new("TSString", colors.normal, colors.none, styles.bold + styles.italic) Group.new("TSStringEscape", groups.TSString, colors.accent_weak, groups.TSString) Group.new("TSStringRegex", groups.TSString, colors.accent_weak, groups.TSString) Group.new("TSStringSpecial", groups.TSString, colors.debug, groups.TSString) Group.new("TSConstBuiltin", groups.TSString, groups.TSString, groups.TSString) Group.new("TSNumber", groups.TSString, groups.TSString, groups.TSString) Group.new("TSBoolean", groups.TSString, groups.TSString, groups.TSString) Group.new("TSFloat", groups.TSString, groups.TSString, groups.TSString) Group.new("TSCharacter", groups.TSString, groups.TSString, groups.TSString) Group.new("TSKeyword", colors.minor, colors.none, styles.NONE) Group.new("TSKeywordFunction", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword) Group.new("TSKeywordOperator", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword) Group.new("TSKeywordReturn", groups.TSKeyword, groups.TSKeyword, styles.bold + styles.underline) Group.new("TSConditional", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword) Group.new("TSRepeat", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword) Group.new("TSLabel", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword + styles.bold) Group.new("TSException", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword) Group.new("TSMethod", colors.normal, colors.none, styles.NONE) Group.new("TSPunctBracket", colors.minor, colors.none, styles.NONE) Group.new("TSPunctDelimiter", groups.TSPunctBracket, groups.TSPunctBracket, groups.TSPunctBracket) Group.new("TSPunctSpecial", groups.TSPunctBracket, groups.TSPunctBracket, groups.TSPunctBracket) Group.new("TSOperator", groups.TSPunctBracket, groups.TSPunctBracket, groups.TSPunctBracket) Group.new("TSVariable", colors.normal, colors.none, styles.NONE) Group.new("TSType", colors.normal, colors.none, styles.NONE) Group.new("TSTypeBuiltin", groups.TSType, groups.TSType, groups.TSType) Group.new("TSComment", colors.important, colors.none, styles.bold + styles.italic) Group.new("TSNote", colors.accent_strong, colors.none, styles.bold) Group.new("TSFunction", colors.normal, colors.none, styles.NONE) Group.new("TSConstant", colors.normal, colors.none, styles.NONE) Group.new("TSConstMacro", colors.normal, colors.none, styles.NONE) Group.new("TSFuncBuiltin", colors.normal, colors.none, styles.NONE) Group.new("TSStructure", colors.normal, colors.none, styles.NONE) Group.new("TSTagDelimiter", colors.normal, colors.none, styles.NONE) Group.new("TSFuncMacro", colors.normal, colors.none, styles.NONE) Group.new("TSInclude", colors.normal, colors.none, styles.NONE) Group.new("TSError", colors.error, colors.none, styles.NONE) Group.new("TSField", colors.normal, colors.none, styles.NONE) Group.new("TSParameter", colors.normal, colors.none, styles.NONE) Group.new("TSProperty", colors.normal, colors.none, styles.NONE) Group.new("TSNone", colors.none, colors.none, styles.NONE) Group.new("TSParameterReference", colors.normal, colors.none, styles.NONE) Group.new("TSConstructor", colors.normal, colors.none, styles.NONE) Group.new("TSAnnotation", colors.normal, colors.none, styles.NONE) Group.new("TSAttribute", colors.normal, colors.none, styles.NONE) Group.new("TSNamespace", colors.normal, colors.none, styles.NONE) Group.new("TSSymbol", colors.normal, colors.none, styles.NONE) Group.new("TSText", colors.normal, colors.none, styles.NONE) Group.new("TSStrong", colors.normal, colors.none, styles.NONE) Group.new("TSEmphasis", colors.normal, colors.none, styles.NONE) Group.new("TSUnderline", colors.normal, colors.none, styles.underline) Group.new("TSStrike", colors.normal, colors.none, styles.NONE) Group.new("TSMath", colors.normal, colors.none, styles.NONE) Group.new("TSTextReference", colors.normal, colors.none, styles.NONE) Group.new("TSEnvironment", colors.normal, colors.none, styles.NONE) Group.new("TSEnvironmentName", colors.normal, colors.none, styles.NONE) Group.new("TSTitle", colors.normal, colors.none, styles.NONE) Group.new("TSLiteral", colors.normal, colors.none, styles.NONE) Group.new("TSURI", colors.normal, colors.none, styles.NONE) Group.new("TSWarning", colors.warning, colors.none, styles.NONE) Group.new("TSDanger", colors.debug, colors.none, styles.NONE) Group.new("TSTag", colors.normal, colors.none, styles.NONE) Group.new("TSTagAttribute", colors.normal, colors.none, styles.NONE) Group.new("TSPlaygroundFocus", colors.important, colors.none, styles.NONE) Group.new("TSQueryLinterError", colors.error, colors.none, styles.NONE) Group.new("TSPlaygroundLang", colors.normal, colors.none, styles.NONE)new file mode 100644+1 / −0 text lines
std = "vim"new file mode 100644+46 / −0 text lines
[selene]base = "lua51"name = "vim"[vim]any = true[[describe.args]]type = "string"[[describe.args]]type = "function"[[it.args]]type = "string"[[it.args]]type = "function"[[before_each.args]]type = "function"[[after_each.args]]type = "function"[assert.is_not]any = true[[assert.equals.args]]type = "any"[[assert.equals.args]]type = "any"[[assert.equals.args]]type = "any"required = false[[assert.same.args]]type = "any"[[assert.same.args]]type = "any"[[assert.truthy.args]]type = "any"[[assert.spy.args]]type = "any"[[assert.stub.args]]type = "any"new file mode 100644+68 / −0 text lines
complete_from_path = truectrlc_exit = falsefilesize_format = "kib"nonzero_exit_errors = truerm_always_trash = truetable_mode = "light"pivot_mode = "auto"disable_table_indexes = falsecompletion_match_method = "case-insensitive"prompt = "__zoxide_hook; starship prompt"skip_welcome_message = truestartup = ["zoxide init nushell --hook prompt | save zoxide.nu","source zoxide.nu", # loading of plugins in nu seems inconsistent. # the only get loaded in interactive nu session. # not for scripts and --commands. # see https://github.com/nushell/nushell/issues/3892"nu plugin --load (build-string $nu.env.CARGO_HOME /bin)","source nurc",][color_config]primitive_int = "blue"primitive_decimal = "blue"primitive_filesize = "blue_dimmed"primitive_string = "blue"primitive_line = "yellow"primitive_columnpath = "cyan"primitive_pattern = "white"primitive_boolean = "blue"primitive_date = "blue_dimmed"primitive_duration = "blue_dimmed"primitive_range = "white_dimmed"primitive_path = "white_bold"primitive_binary = "cyan"separator_color = "purple"header_align = "left" # left|l, right|r, center|cheader_color = "purple"header_bold = trueindex_color = "purple_dimmed"leading_trailing_space_bg = "purple_reverse"[line_editor]auto_add_history = truecolor_mode = "enabled"completion_type = "circular"edit_mode = "emacs"history_duplicates = "ignoreconsecutive"tab_stop = 2[textview]colored_output = trueheader = trueline_numbers = falsepager = "less"paging_mode = "quitifonescreen"tab_width = 2true_color = trueuse_italics = truevcs_modification_markers = truetheme = "Nord"[env]STARSHIP_SHELL = "nushell"EDITOR = "nvim"BAT_THEME = "Nord"_ZO_ECHO = 1deleted file mode 100644+0 / −60 text lines
complete_from_path = truectrlc_exit = falsefilesize_format = "kib"nonzero_exit_errors = truerm_always_trash = truetable_mode = "light"pivot_mode = "auto"disable_table_indexes = falsecompletion_match_method = "case-insensitive"prompt = "__zoxide_hook; starship prompt"skip_welcome_message = truestartup = ["zoxide init nushell --hook prompt | save zoxide.nu","source zoxide.nu","source nurc",][color_config]primitive_int = "blue"primitive_decimal = "blue"primitive_filesize = "blue_dimmed"primitive_string = "blue"primitive_line = "yellow"primitive_columnpath = "cyan"primitive_pattern = "white"primitive_boolean = "blue"primitive_date = "blue_dimmed"primitive_duration = "blue_dimmed"primitive_range = "white_dimmed"primitive_path = "white_bold"primitive_binary = "cyan"separator_color = "purple"header_align = "left" # left|l, right|r, center|cheader_color = "purple"header_bold = trueindex_color = "purple_dimmed"leading_trailing_space_bg = "purple_reverse"[line_editor]auto_add_history = truecolor_mode = "enabled"completion_type = "circular"edit_mode = "emacs"history_duplicates = "ignoreconsecutive"tab_stop = 2[textview]colored_output = trueheader = trueline_numbers = falsepager = "less"paging_mode = "quitifonescreen"tab_width = 2true_color = trueuse_italics = truevcs_modification_markers = truetheme = "Nord"[env]STARSHIP_SHELL = "nushell"deleted file mode 100644+0 / −66 text lines
# This is an initial script for nushell# It is expected that it is sourced in the `config.toml`:# `startup = ["source ~/.config/nushell/nurc"]`# GLOBAL VARIABLESlet TODO_FILE = D:/Notizen/TODO.mdlet NURC = ~/.config/nushell/nurc# ALIASESalias cat = batalias vim = nvimalias edit = nvimalias sudo = gsudoalias doas = sudoalias file = tridalias grep = rgalias che = chezmoi# CUSTOM LITTLE JAVA COMMANDSalias sha = java D:/Tools/sha.javaalias uuid = java D:/Tools/random_uuid.javaalias download = java D:/Tools/download.javaalias download_jar = java D:/Tools/download_jar.java# FUNCTIONS# Search the given query on the web with the default browser in DuckDuckGo.def web [ query:string # The search query] { # There seems to be an issue with the nu start command on windows: It does not handle URLs # Using windows command for now: start (build-string "https://duckduckgo.com/?q=" $query)}# Browse and select files in the current directory with an interactive file viewer.def files [ ...rest # Arguments will be passed to fzf] { let options = ["--ansi", "--info", "inline"] let layout = ["--height", "100%", "--layout", "reverse", "--border", "--preview-window", "up:1:noborder:66%"] let color = ["--color", "fg:#adadad,fg+:#78aba9,bg:#333333,preview-bg:#222222,border:#547877"] let preview = ["--preview", "bat --color=always --italic-text=always --decorations=never --line-range :300 {}"] fzf $options $layout $color $preview $rest}# Show or add to bugabingas TODO file.def todo [ --edit (-e) # Edit the todo file in $EDITOR item?: string # New TODO item to append to TODO file] { if ($edit | empty?) { # How is one supposed to check the optional variable if it is not in scope, when not given? #if $(= $item | empty?) { glow $TODO_FILE # } { # appending a line to a file seems kind of sus in nushell right now... ask on discord about this? # open $TODO_FILE | lines | append $(build-string "- " $item) | save $TODO_FILE # } } { # Is this the nu way of running dynamic commands? nu --commands (build-string $nu.env.EDITOR " " $TODO_FILE) }}deleted file mode 100644+0 / −79 text lines
# =============================================================================## Utility functions for zoxide.## Default prompt for Nushell.def __zoxide_prompt [] { let git = $"(do -i {git rev-parse --abbrev-ref HEAD} | str trim)" let git = (if (echo $git | str length) == 0 { "" } { build-string (char lparen) (ansi cb) $git (ansi reset) (char rparen) }) build-string (ansi gb) (pwd) (ansi reset) $git "> "}# =============================================================================## Hook configuration for zoxide.## Hook to add new entries to the database.def __zoxide_hook [] { shells | where active == $true && name == filesystem | get path | each { zoxide add -- $it }}# =============================================================================## When using zoxide with --no-aliases, alias these internal functions as# desired.## Jump to a directory using only keywords.def __zoxide_z [...rest:string] { if (shells | where active == $true | get name) != filesystem { if (echo $rest | length) > 1 { $"zoxide: can only jump directories on filesystem(char nl)" } { cd (echo $rest) } } { let arg0 = (echo $rest | append '~' | first 1); if (echo $rest | length) <= 1 && ($arg0 == '-' || (echo $arg0 | path expand | path exists)) { cd $arg0 } { cd (zoxide query --exclude (pwd) -- $rest | str trim) } }}# Jump to a directory using interactive search.def __zoxide_zi [...rest:string] { if (shells | where active == $true | get name) != filesystem { $"zoxide: can only jump directories on filesystem(char nl)" } { cd (zoxide query -i -- $rest | str trim) }}# =============================================================================## Convenient aliases for zoxide. Disable these using --no-aliases.#alias z = __zoxide_zalias zi = __zoxide_zi# =============================================================================## To initialize zoxide, first create a Nushell script:## zoxide init nushell --hook prompt | save ~/.zoxide.nu## Add this to your configuration (usually ~/.config/nu/config.toml):## prompt = "__zoxide_hook;__zoxide_prompt"# startup = ["zoxide init nushell --hook prompt | save ~/.zoxide.nu", "source ~/.zoxide.nu"]## You can replace __zoxide_prompt with a custom prompt.new file mode 100644+133 / −0 text lines
# This is an initial script for nushell# It is expected that it is sourced in the `config.toml`:# `startup = ["source ~/.config/nushell/nurc"]`# GLOBAL VARIABLESlet-env NURC = (build-string (pwd) /nurc)let-env DOTFILES = ((build-string (pwd) /..) | path expand)let-env TODO = (build-string $nu.env.DOTFILES /TODO.md)# ALIASESalias cat = batalias vim = nvimalias edit = nvimalias e = nvimalias ll = exa --group-directories-first --classify --long --icons --gitalias la = exa --group-directories-first --classify --all --long --icons --gitalias tr = exa --treealias doas = sudoalias grep = rg# CUSTOM LITTLE JAVA COMMANDSalias aes = java (build-string $nu.env.DOTFILES /tools/ aes.java)alias download = java (build-string $nu.env.DOTFILES /tools/ download.java)alias download_jar = java (build-string $nu.env.DOTFILES /tools/ download_jar.java)# MY STDLIB UTIL MISC HELPER FUNCTIONS# Check whether table in pipeline has a column with given namedef "has-column?" [ name: string # Name of the column to check for] { pivot | any? Column0 == $name}# Prints out a list of stuff.# Appends a newline at the end.def print [ ...rest: any # list of stuff to echo out] { echo (build-string ($rest | flatten | into string | str collect) ) echo (char newline)}# Flattens a table into a string separated by a single space character.def to-string [] { flatten | into string | str collect ' ' }# FUNCTIONS# Render my To-Do file in the terminaldef todo [] { mdcat $nu.env.TODO }# Open my To-Do file for editingdef "todo edit" [] { nvim $nu.env.TODO }# Open the Nushell configuration file for editingdef "config edit" [] { nvim (config path) }# Open my Nushell startup script for editingdef nurc [] { nvim $nu.env.NURC }# Uploads a PUBLIC ssh key to GitHub.# Will prompt for the AES encryption password of my dotfiles.def github-upload-key [ title: string # Name the key, so you will remember what it is used for key: path # Path to the PUBLIC key] { if ($key | path exists) { echo (build-string "uploading ssh public key " (ansi gi) $key (ansi reset) " with title " (ansi gb) $title (ansi reset) " to GitHub.") echo (char newline) let encrypted_token_path = (build-string $nu.env.DOTFILES / tresor / 4cef0ce3-da3a-4f16-9412-2d094b4f7445) let decrypted_token_path = (build-string $nu.env.DOTFILES / tresor / gh_token) aes decrypt $encrypted_token_path $decrypted_token_path let token = (open --raw $decrypted_token_path) let key_content = (open --raw $key) rm -f $decrypted_token_path let result = (do -i { xh --bearer $token https://api.github.com/user/keys (build-string title = $title) (build-string key = $key_content) | from json}) if ($result | has-column? errors) { let message = ($result | get message) let url = ($result | get documentation_url) let errors = ($result | get errors) echo (build-string (ansi rb) $message (ansi reset) (char newline)) echo (char newline) $errors | each { let resource = ($it | get resource) let code = ($it | get code) let field = ($it | get field) let message = ($it | get message) echo (build-string (ansi ui) $resource : $code : $field ": " (ansi rb) $message (ansi reset) (char newline)) } echo (build-string "Further information: " (ansi yi) $url (ansi reset) (char newline)) } { let id = ($result | get id) let key = ($result | get key) let title = ($result | get title) let created_at = ($result | get created_at) echo (build-string "[" ID : $id "]" " key with title " (ansi gb) $title (ansi reset) " was created at " (ansi yi) $created_at (ansi reset) "." (char newline) ) echo (build-string (ansi wu) "PUBLIC SSH KEY:" (ansi reset)) echo (char newline) echo ($key | ansi gradient --fgstart 0xaefe9f --fgend 0xfefefe) echo (char newline) } } { echo (build-string "key " (ansi rb) $key (ansi reset) " not found!") echo (char newline) }}# Shows git log in a pretty tabledef glog [ ...rest: string # Extra arguments to git log] { git log --pretty=%h»¦«%s»¦«%aN»¦«%aE»¦«%aD -n 25 $rest | lines | split column "»¦«" commit subject name email date | update date { get date | str to-datetime} | sort-by date}# Open manual page.# On Windows, a man web page is opened.def man [ ...rest: string # Arguments to man] { if (sys).host.name == "Windows" { start (build-string https://man.cx/ ($rest | to-string)) } { exec man $rest }}# Search the given query on the web with the default browser in DuckDuckGo.def web [ ...rest:string # The search query] { # There seems to be an issue with the nu start command on windows: It does not handle URLs # Using windows command for now: start (build-string "https://duckduckgo.com/?q=" ($rest | to-string))}new file mode 100644+41 / −0 text lines
git/gitconfig~/.config/git/configgit/gitconfig.linux~/.config/git/.gitconfig.includealacritty/alacritty.linux.yml~/.config/alacritty/alacritty.ymlalacritty/alacritty_common.yml~/.config/alacritty/alacritty_common.ymlalacritty/Alacritty.desktop~/.local/share/applications/Alacritty.desktopalacritty/alacritty-simple.svg~/.local/share/icons/hicolor/scalable/apps/Alacritty.svgcargo/config.toml~/.cargo/config.tomlnushell~/.config/nuneovim~/.config/nvimstackoverflow/so~/.config/sostarship/starship.toml~/.config/starship.tomlalacritty~/.config/alacrittytopgrade/topgrade.linux.toml~/.config/topgrade.tomlindexa/config.linux.toml~/.config/indexa/config.toml+14 / −3 text lines
new file mode 100644+209 / −0 text lines
import static java.lang.System.out;import java.nio.file.*;import java.nio.charset.*;import java.nio.*;import java.io.*;import java.util.*;import java.security.*;import java.security.spec.*;import javax.crypto.*;import javax.crypto.spec.*;class aes { enum Command { ENCRYPT, DECRYPT }; static Cipher AES_GCM_PKCS5; static byte[] SALT = new byte[] { 116, 104, 101, 32, 109, 111, 111, 110, 32, 105, 115, 32, 104, 105, 100, 100, 101, 110, 32, 105, 110, 32, 112, 108, 97, 105, 110, 32, 118, 105, 101, 119 }; static SecureRandom RANDOM = new SecureRandom(); /* * 12 ist NIST recommendation. supposedly fast and secure enough... */ static int GCM_IV_SIZE = 12; /* * AES encrypts 128-blocks internally, so this should be reasonable memory bufer size. */ static int READ_BUFFER_SIZE = 128; /* * Supported sizes for GCM authentication tags seem to be {128, 120, 112, 104, 96}. * But we do not really care, since we do not use them here. */ static int GCM_AUTH_TAG_SIZE = 96; public static void main(String[] arguments) throws Throwable { if(arguments.length == 0){ usage(); throw fail(); } var input_command = arguments[0]; Command command; if ("encrypt".startsWith(input_command)) { command = Command.ENCRYPT; } else if ("decrypt".startsWith(input_command)) { command = Command.DECRYPT; } else { throw fail("unknown command %s given%n", emphasize_global(input_command)); } AES_GCM_PKCS5 = Cipher.getInstance("AES/GCM/NoPadding"); var console = System.console(); /* * If there is no console, this program is most likely part of a pipe. * In such cases a `--password-file` flag is mandatory, because we cannot interactively ask for the password. */ if(console == null){ if(arguments.length != 3 || !"--password-file".equals(arguments[1])) { usage(); throw fail("When running %s non-interactively, the %s flag is required.%nOtherwise there is no way to securely obtain the password.%n",emphasize_local("aes"), emphasize_global("--password-file")); } var password_file = Path.of(arguments[2]); if(!Files.exists(password_file)) { throw fail("the given password file %s does not exist%n", emphasize_local(password_file.toString())); } var password = toChars(Files.readAllBytes(password_file)); switch (command) { case ENCRYPT: encrypt(password, System.in, System.out); break; case DECRYPT: decrypt(password, System.in, System.out); break; } } else { if(arguments.length <= 1) { usage(); throw fail("not enough arguments given%n"); } char[] password; String input; String output; if("--password-file".equals(arguments[1])) { if(arguments.length != 5) { usage(); throw fail("the flag %s requires a path%n", emphasize_local("--password-file")); } var password_file = Path.of(arguments[2]); if(!Files.exists(password_file)) { throw fail("the given password file %s does not exist%n", emphasize_local(password_file.toString())); } password = toChars(Files.readAllBytes(password_file)); input = arguments[3]; output = arguments[4]; } else { if(arguments.length != 3) { usage(); throw fail("when encrypting/decrypting a file, an output path is required%n"); } password = console.readPassword("[%s]:",emphasize_global("Password")); input = arguments[1]; output = arguments[2]; } var input_path = Path.of(input); if(!Files.exists(input_path)) { throw fail("the given input path %s does not exist%n", emphasize_global(input_path.toString())); } var output_path = Path.of(output); if(Files.exists(output_path)) { throw fail("the output path %s already exists%n", emphasize_global(output_path.toString())); } var input_stream = Files.newInputStream(input_path, StandardOpenOption.READ); var output_stream = Files.newOutputStream(output_path, StandardOpenOption.CREATE_NEW, StandardOpenOption.WRITE); switch (command) { case ENCRYPT: encrypt(password, input_stream, output_stream); break; case DECRYPT: decrypt(password, input_stream, output_stream); break; } } throw exit(); } static void encrypt(char[] password, InputStream input, OutputStream output) throws Exception { // FIXME: generate random salt and append it here just like IV // in GCM the IV should be unique per encrypted thingy var initialization_vector = new byte[GCM_IV_SIZE]; RANDOM.nextBytes(initialization_vector); //save the IV for the decryption step later. secure? nope. but how else are we to share IVs between encryption/decryption? output.write(initialization_vector); var secret = toSecretKey(password); var parameter_spec = new GCMParameterSpec(GCM_AUTH_TAG_SIZE, initialization_vector); AES_GCM_PKCS5.init(Cipher.ENCRYPT_MODE, secret, parameter_spec); var read_buffer = new byte[READ_BUFFER_SIZE]; var aes_buffer = new byte[READ_BUFFER_SIZE]; int read_bytes_count = 0; while((read_bytes_count = input.read(read_buffer)) != -1){ var aes_bytes_count = AES_GCM_PKCS5.update(read_buffer, 0, read_bytes_count, aes_buffer); output.write(aes_buffer, 0, aes_bytes_count); } output.write(AES_GCM_PKCS5.doFinal()); } static void decrypt(char[] password, InputStream input, OutputStream output) throws Exception { //the IV get prepended to the data during encryption var initialization_vector = new byte[GCM_IV_SIZE]; input.read(initialization_vector); var parameter_spec = new GCMParameterSpec(GCM_AUTH_TAG_SIZE, initialization_vector); var secret = toSecretKey(password); AES_GCM_PKCS5.init(Cipher.DECRYPT_MODE, secret, parameter_spec); var read_buffer = new byte[READ_BUFFER_SIZE]; var aes_buffer = new byte[READ_BUFFER_SIZE]; int read_bytes_count = 0; while((read_bytes_count = input.read(read_buffer)) != -1){ var aes_bytes_count = AES_GCM_PKCS5.update(read_buffer, 0, read_bytes_count, aes_buffer); output.write(aes_buffer, 0, aes_bytes_count); } // the java impl of GCM seems to buffer the whole data in memory and only releasing it on doFinal. yuck! // there is not much i can do about this other than to wait for JDK patches. //TODO: in the case of AES GCM the final byte block is the authentication tag. //as such it should porbably NOT be written to the output file. //or is this assumption wrong? output.write(AES_GCM_PKCS5.doFinal()); //FIXME: when given a wrong password we get a nonsensical error. make this nicer for human } static SecretKey toSecretKey(char[] password) throws Exception { var factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA256"); var spec = new PBEKeySpec(password, SALT, 65536, 256); return new SecretKeySpec(factory.generateSecret(spec).getEncoded() , "AES"); } static char[] toChars(byte[] bytes) { var byte_buffer = ByteBuffer.wrap(bytes); var char_buffer = StandardCharsets.UTF_8.decode(byte_buffer); return char_buffer.array(); } static void usage() { out.printf("%s encrypts/decrypts data.%n", emphasize_local("Symmetrically ")); out.printf("%s: java aes.java <e(ncrypt)|d(ecrypt)> [--password-file <path>] <input path> <output path>%n", emphasize_global("Usage for files")); out.printf("%s: java aes.java <e(ncrypt)|d(ecrypt)> --password-file <path>%n", emphasize_global("Usage for stdin/stdout")); } static Throwable exit() { out.printf("%s!%n", emphasize_local("Done")); System.exit(0); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); } static String emphasize_global(String message) { return "\033[4m" + message + "\033[0m"; } static String emphasize_local(String message) { return "\033[3m" + message + "\033[0m"; } static Throwable fail(String message, Object... arguments) { out.printf(message, arguments); System.exit(-1); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); } static Throwable fail() { System.exit(-1); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); }}new file mode 100644+73 / −0 text lines
import static java.lang.System.*;import java.net.*;import java.net.http.*;import java.net.http.HttpClient.*;import java.net.http.HttpResponse.*;import java.nio.file.*;import java.util.*;import java.util.regex.*;class download { public static void main(String[] command_line_arguments) { if (command_line_arguments.length < 1) { usage(); fail("give me an url to download from!"); } var client = HttpClient.newBuilder().followRedirects(Redirect.NORMAL).build(); var source_name = command_line_arguments[0]; var source = URI.create(source_name); var current_working_directory = System.getProperty("user.dir"); Path target; if (command_line_arguments.length == 2) { target = Paths.get(current_working_directory, command_line_arguments[1]); } else { target = Paths.get(current_working_directory, guess_file_name(source_name)); } out.printf("Downloading %s into %s.%n", emphasize_local(source.toString()), emphasize_local(target.toString())); download_ressource(client, source, target); // TODO: download links in html to other pages exit(); } static String guess_file_name(String name) { return name.replaceAll("\\w+:\\/\\/", "").replaceAll("\\/", "_"); } static void download_ressource(HttpClient client, URI source, Path target) { //TODO: handle copmressed ressources //TODO: show progess var request = HttpRequest.newBuilder().uri(source).build(); client .sendAsync(request, BodyHandlers.ofFile(target)) .thenAccept(response -> out.printf("Downloaded %s into %s!%n", emphasize_local(source.toString()), emphasize_global(response.body().toString()))) .join(); } static void usage() { out.printf("Downloads a file from an %s.%n", emphasize_local("URL")); out.printf("%s: java download.java <source url> <destination path>%n", emphasize_global("Usage")); } static void exit() { out.printf("%s!%n", emphasize_local("Done")); System.exit(0); } static String emphasize_global(String message) { return "\033[4m" + message + "\033[0m"; } static String emphasize_local(String message) { return "\033[3m" + message + "\033[0m"; } static void fail(String message, Object... arguments) { out.printf(message, arguments); System.exit(-1); } static void fail() { System.exit(-1); }}new file mode 100644+198 / −0 text lines
import static java.lang.System.out;import java.io.*;import java.net.*;import java.net.http.*;import java.net.http.HttpResponse.*;import java.nio.file.*;import java.util.*;import java.util.concurrent.ConcurrentSkipListSet;class download_jar { public static void main(final String[] command_line_arguments) { help(); var current_working_directory = Paths.get(System.getProperty("user.dir")); var download_directory = current_working_directory.resolve("downloaded_artifacts"); var maven_repository = "https://repo.maven.apache.org/maven2"; var expected_count_of_arguments = 3; if (contains(command_line_arguments, "-d")) { expected_count_of_arguments = expected_count_of_arguments + 2; try { var given_download_directory = command_line_arguments[index_of(command_line_arguments, "-d") + 1]; download_directory = current_working_directory.resolve(given_download_directory); } catch (IndexOutOfBoundsException exception) { out.println("The -d option requires an argument."); usage(); fail(); } } if (contains(command_line_arguments, "-r")) { expected_count_of_arguments = expected_count_of_arguments + 2; try { var given_maven_repository = command_line_arguments[index_of(command_line_arguments, "-r") + 1]; maven_repository = given_maven_repository; } catch (IndexOutOfBoundsException exception) { out.println("The -r option requires an argument."); usage(); fail(); } } if (command_line_arguments.length != expected_count_of_arguments) { usage(); fail(); } var maven_coordinates_reversed = new String[3]; for (var index = 2; index >= 0; --index) { maven_coordinates_reversed[index] = command_line_arguments[expected_count_of_arguments - index - 1]; } var group_id = maven_coordinates_reversed[2]; var artifact_id = maven_coordinates_reversed[1]; var version = maven_coordinates_reversed[0]; if (Files.exists(download_directory) && Files.isRegularFile(download_directory)) { fail("The given download directory path %s already points to a file!%n", download_directory.toString()); } else if (!Files.exists(download_directory)) { out.printf("Creating directory at %s%n.", emphasize_global(download_directory.toString())); try { Files.createDirectories(download_directory); } catch (IOException __) { fail("Unable to create directory at %s", emphasize_global(download_directory.toString())); } } var expected_artifact_base_url = guess_maven_artifact_url(maven_repository, group_id, artifact_id, version); var client = HttpClient.newHttpClient(); var request = HttpRequest.newBuilder().uri(URI.create(expected_artifact_base_url)).build(); var target_directory = download_directory; client.sendAsync(request, BodyHandlers.ofString()).thenApply(HttpResponse::statusCode).thenAccept(status -> { if (status > 299) { fail("Could not find maven artifact at %s.%n", expected_artifact_base_url); } else { download_ressource(client, target_directory, build_ressource_url(expected_artifact_base_url, artifact_id, version, ".jar")); download_ressource(client, target_directory, build_ressource_url(expected_artifact_base_url, artifact_id, version, "-sources.jar")); // FIXME BLOCKER! How do we implement the version clash resolution? // Preferably in a manner that avoids pointless downloads... var processed_cache = new ConcurrentSkipListSet<String>(); process_pom(client, processed_cache, build_ressource_url(expected_artifact_base_url, artifact_id, version, ".pom")); } }).join(); out.printf("download directory:\t%s%nmaven repository:\t%s%nmaven coordinates:\t%s:%s:%s%n", emphasize_global(download_directory.toString()), emphasize_global(maven_repository), emphasize_global(group_id), emphasize_global(artifact_id), emphasize_global(version)); exit(); } static Collection<String> process_pom(HttpClient client, Set<String> processed, String pom_url) { if (processed.contains(pom_url)) return Collections.emptyList(); var request = HttpRequest.newBuilder().uri(URI.create(pom_url)).build(); return client.sendAsync(request, BodyHandlers.ofInputStream()).thenApply(input -> { // TODO add pom to list of processed so that a pom only ever gets read once processed.add(pom_url); // TODO traverse path to root of poms and collect managed dependencies // TODO collect declared dependencies from given pom return List.<String>of(); }).join(); } static void download_ressource(HttpClient client, Path target_directory, String ressource_url) { var request = HttpRequest.newBuilder().uri(URI.create(ressource_url)).build(); var ressource_name = ressource_url.substring(ressource_url.lastIndexOf('/') + 1); var target_ressource_path = target_directory.resolve(ressource_name); client.sendAsync(request, BodyHandlers.ofFile(target_ressource_path)).join(); } static String build_ressource_url(String base, String artifact_id, String version, String suffix) { var url = new StringBuilder(base); if (!base.endsWith("/")) url.append('/'); url.append(artifact_id); url.append('-'); url.append(version); url.append(suffix); return url.toString(); } static String guess_maven_artifact_url(String base, String group_id, String artifact_id, String version) { var url = new StringBuilder(base); if (!base.endsWith("/")) url.append('/'); url.append(group_id.replaceAll("\\.", "\\/")); url.append('/'); url.append(artifact_id); url.append('/'); url.append(version); url.append('/'); return url.toString(); } static class Dependency { String artifactId; String groupId; String version; String scope; boolean optional; } static <T> int index_of(T[] array, T item) { var length = array.length; if (length == 0) return -1; for (var index = 0; index < length; ++index) { var element = array[index]; if (Objects.equals(element, item)) return index; } return -1; } @SafeVarargs static <T> boolean contains(T[] array, T... items) { if (array.length == 0) return false; if (items.length == 0) return false; for (var element : array) { for (var argument : items) { if (element.equals(argument)) return true; } } return false; } static void help() { out.printf("Downloads an artifact from a %s repository with its %s.%n", emphasize_local("maven"), emphasize_local("transitive dependencies")); } static void usage() { out.printf("%s: java download_jar.java <artifact id> <group id> <version>%n", emphasize_global("Usage")); } static void exit() { out.printf("%s!%n", emphasize_local("Done")); System.exit(0); } static String emphasize_global(String message) { return "\033[4m" + message + "\033[0m"; } static String emphasize_local(String message) { return "\033[3m" + message + "\033[0m"; } static void fail(String message, Object... arguments) { out.printf(message, arguments); System.exit(-1); } static void fail() { System.exit(-1); }}new file mode 100644+1 / −0 text lines
dein arsch stinkt nach märchenfleischNo final newlinenew file mode 100644+6 / −0 text lines
new file mode 100644+43 / −0 text lines
# Disable specific steps - same options as the command line flag# Siehe command -> Windowsdisable = ["tldr", "vim"]# Run specific steps - same options as the command line flag#only = ["system", "emacs"]# Do not ask to retry failed steps (default: false)no_retry = true# Do not set the terminal titleset_title = true# Cleanup temporary or old filescleanup = true[git]# Additional git repositories to pullrepos = ["~/Workspace"]pull_predefined= false# Arguments to pass Git when pulling Repositoriesarguments = "--rebase --autostash"# Commands to run before anything#[pre_commands]#"Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"# Custom commands[commands]# Updateing my configuration files"Refresh Dotfiles" = "java ~/Workspace/dotfiles/bootstripper.java ~/Workspace/dotfiles"# Leider scheint der eingebaute "tldr" step von topgrade nicht für meine Version von TLDR funktionieren"TLDR" = "tldr --update"# Update NeoVim-Plugins"NeoVim Plugins" = "echo 'Updating Plugins (packer) in headless neovim instance.' ; nvim --headless '+PluginsSync' '+autocmd User PackerComplete :qa'"# Dateisystem-Indexer ix erfrischen"Indexa Update" = "ix --update"deleted file mode 100644+0 / −47 text lines
# Disable specific steps - same options as the command line flag# Siehe command -> Windowsdisable = ["tldr", "vim"]# Run specific steps - same options as the command line flag#only = ["system", "emacs"]# Do not ask to retry failed steps (default: false)no_retry = true# Do not set the terminal titleset_title = true# Cleanup temporary or old filescleanup = true[git]# Additional git repositories to pullrepos = ["W:/apm.web", "W:/misc/*/"]pull_predefined= false# Arguments to pass Git when pulling Repositoriesarguments = "--rebase --autostash"# Commands to run before anything#[pre_commands]#"Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"# Custom commands[commands]# Leider scheint der eingebaute "tldr" step von topgrade nicht für meine Version von TLDR funktionieren"TLDR" = "tldr --update"# Diese Skripte beziehen APM und MeMate aus dem Transfer."Advantage-PM Client" = ". D:/Tools/update_apm_client.ps1""MeMate" = ". D:/Tools/update_memate.ps1"# Force update of fresh nightly neovim"NeoVim Nightly" = "scoop update --force neovim-nightly"# Update NeoVim-Plugins"NeoVim Plugins" = "Write-Host 'Updating Plugins (packer) in headless neovim instance.' ; nvim --headless '+PluginsSync' '+autocmd User PackerComplete :qa'"# Dateisystem-Indexer ix erfrischen"Indexa Update" = "ix --update"new file mode 100644+48 / −0 text lines
# Disable specific steps - same options as the command line flag# Siehe command -> Windowsdisable = ["tldr", "vim"]# Run specific steps - same options as the command line flag#only = ["system", "emacs"]# Do not ask to retry failed steps (default: false)no_retry = true# Do not set the terminal titleset_title = true# Cleanup temporary or old filescleanup = true[git]# Additional git repositories to pullrepos = ["W:/apm.web", "W:/misc/*/"]pull_predefined= false# Arguments to pass Git when pulling Repositoriesarguments = "--rebase --autostash"# Commands to run before anything#[pre_commands]#"Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"# Custom commands[commands]"Refresh dotfiles" = "java W:/misc/dotfiles/bootstripper.java W:/misc/dotfiles"# Leider scheint der eingebaute "tldr" step von topgrade nicht für meine Version von TLDR funktionieren"TLDR" = "tldr --update"# Diese Skripte beziehen APM und MeMate aus dem Transfer."Advantage-PM Client" = ". D:/Tools/update_apm_client.ps1""MeMate" = ". D:/Tools/update_memate.ps1"# Force update of fresh nightly neovim"NeoVim Nightly" = "scoop update --force neovim-nightly"# Update NeoVim-Plugins"NeoVim Plugins" = "Write-Host 'Updating Plugins (packer) in headless neovim instance.' ; nvim --headless '+PluginsSync' '+autocmd User PackerComplete :qa'"# Dateisystem-Indexer ix erfrischen"Indexa Update" = "ix --update"deleted file mode 100644+0 / −3 text lines
deleted file mode 100644+0 / −9 text lines
deleted file mode 100644+0 / −64 text lines
extends: conditionalmessage: "Spell out '%s', if it's unfamiliar to the audience."link: 'https://developers.google.com/style/abbreviations'level: suggestionignorecase: false# Ensures that the existence of 'first' implies the existence of 'second'.first: '\b([A-Z]{3,5})\b'second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'# ... with the exception of these:exceptions: - API - ASP - CLI - CPU - CSS - CSV - DEBUG - DOM - DPI - FAQ - GCC - GDB - GET - GPU - GTK - GUI - HTML - HTTP - HTTPS - IDE - JAR - JSON - JSX - LESS - LLDB - NET - NOTE - NVDA - OSS - PATH - PDF - PHP - POST - RAM - REPL - RSA - SCM - SCSS - SDK - SQL - SSH - SSL - SVG - TBD - TCP - TODO - URI - URL - USB - UTF - XML - XSS - YAML - ZIPdeleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −30 text lines
extends: substitutionmessage: "Feel free to use '%s' instead of '%s'."link: 'https://developers.google.com/style/contractions'level: suggestionignorecase: trueaction: name: replaceswap: are not: aren't cannot: can't could not: couldn't did not: didn't do not: don't does not: doesn't has not: hasn't have not: haven't how is: how's is not: isn't it is: it's should not: shouldn't that is: that's they are: they're was not: wasn't we are: we're we have: we've were not: weren't what is: what's when is: when's where is: where's will not: won'tdeleted file mode 100644+0 / −9 text lines
extends: existencemessage: "Use 'July 31, 2016' format, not '%s'."link: 'https://developers.google.com/style/dates-times'ignorecase: truelevel: errornonword: truetokens: - '\d{1,2}(?:\.|/)\d{1,2}(?:\.|/)\d{4}' - '\d{1,2} (?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)|May|Jun(?:e)|Jul(?:y)|Aug(?:ust)|Sep(?:tember)?|Oct(?:ober)|Nov(?:ember)?|Dec(?:ember)?) \d{4}'deleted file mode 100644+0 / −9 text lines
deleted file mode 100644+0 / −12 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −9 text lines
deleted file mode 100644+0 / −45 text lines
extends: substitutionmessage: "Consider using '%s' instead of '%s'."link: 'https://developers.google.com/style/inclusive-documentation'ignorecase: truelevel: errorswap: (?:alumna|alumnus): graduate (?:alumnae|alumni): graduates air(?:m[ae]n|wom[ae]n): pilot(s) anchor(?:m[ae]n|wom[ae]n): anchor(s) authoress: author camera(?:m[ae]n|wom[ae]n): camera operator(s) chair(?:m[ae]n|wom[ae]n): chair(s) congress(?:m[ae]n|wom[ae]n): member(s) of congress door(?:m[ae]|wom[ae]n): concierge(s) draft(?:m[ae]n|wom[ae]n): drafter(s) fire(?:m[ae]n|wom[ae]n): firefighter(s) fisher(?:m[ae]n|wom[ae]n): fisher(s) fresh(?:m[ae]n|wom[ae]n): first-year student(s) garbage(?:m[ae]n|wom[ae]n): waste collector(s) lady lawyer: lawyer ladylike: courteous landlord: building manager mail(?:m[ae]n|wom[ae]n): mail carriers man and wife: husband and wife man enough: strong enough mankind: human kind manmade: manufactured manpower: personnel men and girls: men and women middle(?:m[ae]n|wom[ae]n): intermediary news(?:m[ae]n|wom[ae]n): journalist(s) ombuds(?:man|woman): ombuds oneupmanship: upstaging poetess: poet police(?:m[ae]n|wom[ae]n): police officer(s) repair(?:m[ae]n|wom[ae]n): technician(s) sales(?:m[ae]n|wom[ae]n): salesperson or sales people service(?:m[ae]n|wom[ae]n): soldier(s) steward(?:ess)?: flight attendant tribes(?:m[ae]n|wom[ae]n): tribe member(s) waitress: waiter woman doctor: doctor woman scientist[s]?: scientist(s) work(?:m[ae]n|wom[ae]n): worker(s)deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −26 text lines
extends: capitalizationmessage: "'%s' should use sentence-style capitalization."link: 'https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings'level: warningscope: headingmatch: $sentenceexceptions: - Azure - CLI - Code - Cosmos - Docker - Emmet - I - Kubernetes - Linux - macOS - Marketplace - MongoDB - REPL - Studio - TypeScript - URLs - Visual - VS - Windowsdeleted file mode 100644+0 / −11 text lines
deleted file mode 100644+0 / −14 text lines
deleted file mode 100644+0 / −12 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −184 text lines
extends: existencelink: 'https://developers.google.com/style/voice'message: "In general, use active voice instead of passive voice ('%s')."ignorecase: truelevel: suggestionraw: - \b(am|are|were|being|is|been|was|be)\b\s*tokens: - '[\w]+ed' - awoken - beat - become - been - begun - bent - beset - bet - bid - bidden - bitten - bled - blown - born - bought - bound - bred - broadcast - broken - brought - built - burnt - burst - cast - caught - chosen - clung - come - cost - crept - cut - dealt - dived - done - drawn - dreamt - driven - drunk - dug - eaten - fallen - fed - felt - fit - fled - flown - flung - forbidden - foregone - forgiven - forgotten - forsaken - fought - found - frozen - given - gone - gotten - ground - grown - heard - held - hidden - hit - hung - hurt - kept - knelt - knit - known - laid - lain - leapt - learnt - led - left - lent - let - lighted - lost - made - meant - met - misspelt - mistaken - mown - overcome - overdone - overtaken - overthrown - paid - pled - proven - put - quit - read - rid - ridden - risen - run - rung - said - sat - sawn - seen - sent - set - sewn - shaken - shaven - shed - shod - shone - shorn - shot - shown - shrunk - shut - slain - slept - slid - slit - slung - smitten - sold - sought - sown - sped - spent - spilt - spit - split - spoken - spread - sprung - spun - stolen - stood - stridden - striven - struck - strung - stuck - stung - stunk - sung - sunk - swept - swollen - sworn - swum - swung - taken - taught - thought - thrived - thrown - thrust - told - torn - trodden - understood - upheld - upset - wed - wept - withheld - withstood - woken - won - worn - wound - woven - written - wrungdeleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −11 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −11 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −80 text lines
extends: substitutionmessage: "Use '%s' instead of '%s'."link: 'https://developers.google.com/style/word-list'level: warningignorecase: falseaction: name: replaceswap: '(?:API Console|dev|developer) key': API key '(?:cell ?phone|smart ?phone)': phone|mobile phone '(?:dev|developer|APIs) console': API console '(?:e-mail|Email|E-mail)': email '(?:file ?path|path ?name)': path '(?:kill|terminate|abort)': stop|exit|cancel|end '(?:OAuth ?2|Oauth)': OAuth 2.0 '(?:ok|Okay)': OK|okay '(?:WiFi|wifi)': Wi-Fi '[\.]+apk': APK '3\-D': 3D 'Google (?:I\-O|IO)': Google I/O 'tap (?:&|and) hold': touch & hold 'un(?:check|select)': clear above: preceding account name: username action bar: app bar admin: administrator Ajax: AJAX Android device: Android-powered device android: Android API explorer: APIs Explorer application: app approx\.: approximately authN: authentication authZ: authorization autoupdate: automatically update cellular data: mobile data cellular network: mobile network chapter: documents|pages|sections check box: checkbox check: select CLI: command-line tool click on: click|click in Cloud: Google Cloud Platform|GCP Container Engine: Kubernetes Engine content type: media type curated roles: predefined roles data are: data is Developers Console: Google API Console|API Console disabled?: turn off|off ephemeral IP address: ephemeral external IP address fewer data: less data file name: filename firewalls: firewall rules functionality: capability|feature Google account: Google Account Google accounts: Google Accounts Googling: search with Google grayed-out: unavailable HTTPs: HTTPS in order to: to ingest: import|load k8s: Kubernetes long press: touch & hold network IP address: internal IP address omnibox: address bar open-source: open source overview screen: recents screen regex: regular expression SHA1: SHA-1|HAS-SHA1 sign into: sign in to sign-?on: single sign-on static IP address: static external IP address stylesheet: style sheet synch: sync tablename: table name tablet: device touch: tap url: URL vs\.: versus World Wide Web: webdeleted file mode 100644+0 / −4 text lines
deleted file mode 100644No text changes.
deleted file mode 100644+0 / −10 text lines
extends: substitutionmessage: Use '%s' instead of '%s'description: "Tech people know their acronyms; you come across as not very tech-savvy if you expand them."ignorecase: truelevel: warningaction: name: replaceswap: 'cascading[ -]?style[ -]?sheets': CSS 'hyper[ -]?text(?:[ -]?mark[ -]?up(?:[ -]?language)?)?': HTMLdeleted file mode 100644+0 / −26 text lines
extends: existencemessage: "Avoid using '%s'"description: "Benefits such as '%s' are not bad in themselves, but their appearance in a job post often disguises the fact that there are few real benefits to working for a company."ignorecase: truelevel: warningtokens: - 'ales?' - 'beers?' - 'brewskis?' - 'coffee' - '(?:foos|fuss)[ -]*ball' - 'happy[ -]*hours?' - 'keg(erator)?s?' - 'lagers?' - 'nerf[ -]*guns?' - 'ping[ -]*pong?' - 'pints?' - 'pizzas?' - 'play\\s*stations?' - 'pool[ -]*table|pool' - 'rock[ -]*walls?' - 'table[ -]*football' - 'table[ -]*tennis' - 'wiis?' - 'xbox(?:es|s)?' - 'massages?'deleted file mode 100644+0 / −13 text lines
extends: existencemessage: "Avoid using '%s'"description: "Bro culture terminology can really reduce the number of people likely to show interest."ignorecase: truelevel: errortokens: - 'brogramm(?:er|ers|ing)' - 'crank' - 'crush' - 'hard[ -]*core' - 'hella' - 'mak(?:e|ing) it rain' - 'skillz'deleted file mode 100644+0 / −17 text lines
extends: existencemessage: "Avoid using '%s'"description: "Competition can be healthy, but for a lot of people a heavily competitive environment can be a strain."ignorecase: truelevel: suggestiontokens: - 'compete' - 'competition' - 'competitive' - 'cutting[ -]edge' - 'fail' - 'fore[ -]*front' - 'super[ -]*stars?' - 'the best' - 'reach the top' - 'top of .{2,8} (?:game|class)' - 'win'deleted file mode 100644+0 / −15 text lines
deleted file mode 100644+0 / −17 text lines
extends: existencemessage: "Don't specify a development environment unless absolutely necessary."ignorecase: truelevel: suggestiontokens: - 'atom' - 'bb[ -]*edit' - 'dream[ -]*weaver' - 'eclipse' - 'emacs' - 'net[ -]*beans' - 'note[ -]*pad' - 'sublime[ -]*text' - 'text[ -]*wrangler' - 'text[ -]*mate' - 'vim?' - 'visual[ -]*studio'deleted file mode 100644+0 / −13 text lines
extends: existencemessage: "Avoid using '%s'"description: "Referring to tech people as '%s' devalues the work that they do and shows a lack of respect and professionalism."ignorecase: truelevel: warningtokens: - 'gurus?' - 'hero(?:es|ic)?' - 'ninjas?' - 'rock[ -]*stars?' - 'super[ -]*stars?' - 'badass(?:es)?' - 'BAMF'deleted file mode 100644+0 / −40 text lines
extends: existencemessage: "Avoid using '%s'"description: "Use of '%s' could indicate that you're discriminating in favour of a certain gender."ignorecase: truelevel: errortokens: - 'boys?' - 'bros?' - 'broth(?:a|er)s?' - 'chicks?' - 'dads?' - 'dudes?' - 'fathers?' - 'females?' - 'gentlem[ae]n' - 'girls?' - 'grandfathers?' - 'grandmas?' - 'grandmothers?' - 'grandpas?' - 'gran' - 'grann(?:y|ies)' - 'guys?' - 'husbands?' - 'lad(y|ies)?' - 'm[ae]n' - 'm[ou]ms?' - 'males?' - 'momm(?:y|ies)' - 'mommas?' - 'mothers?' - 'papas?' - 'sist(?:a|er)s?' - 'wi(?:fe|ves)' - 'wom[ae]n' - he - her - him - his - shedeleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −15 text lines
extends: existencemessage: "Avoid using '%s'"description: "Legacy technologies can reduce the number of people interested in a job."ignorecase: truelevel: suggestiontokens: - 'cobol' - 'cvs' - 'front[ -]*page' - 'rcs' - 'sccs' - 'source[ -]*safe' - 'vb\\s*6' - 'visual[ -]*basic\\s*6' - 'vbscript'deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −25 text lines
Based on [Joblint](https://github.com/rowanmanning/joblint).> Test tech job posts for issues with sexism, culture, expectations, and recruiter fails.```Copyright (c) 2015, Rowan ManningPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.```deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −10 text lines
deleted file mode 100644+0 / −9 text lines
extends: existencemessage: "Avoid using '%s'"description: "Terms like '%s' and others can indicate that the person writing a job post is unaware of the time and effort involved in preparing a new starter for work."ignorecase: truelevel: suggestiontokens: - 'hit[ -]the[ -]ground[ -]running' - 'juggle' - 'tight deadlines?'deleted file mode 100644+0 / −9 text lines
deleted file mode 100644+0 / −15 text lines
extends: existencemessage: "Avoid using '%s'"description: "Terms like '%s' often indicate that a non technical person (perhaps a CEO or stakeholder) has been involved in writing the post."ignorecase: truelevel: warningtokens: - 'blue[ -]*sk(?:y|ies)' - 'enlighten(?:ed|ing)?' - 'green[ -]*fields?' - 'incentivi[sz]e' - 'paradigm' - 'producti[sz]e' - 'reach(?:ed|ing)? out' - 'synerg(?:y|ize|ise)' - 'visionar(?:y|ies)'deleted file mode 100644+0 / −4 text lines
deleted file mode 100644+0 / −9 text lines
deleted file mode 100644+0 / −25 text lines
extends: existencemessage: "Don't use language (such as '%s') that defines people by their disability."link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/accessibility-termslevel: suggestionignorecase: truetokens: - a victim of - able-bodied - affected by - an epileptic - crippled - disabled - dumb - handicapped - handicaps - healthy - lame - maimed - missing a limb - mute - normal - sight-impaired - stricken with - suffers from - vision-impaireddeleted file mode 100644+0 / −64 text lines
extends: conditionalmessage: "'%s' has no definition."link: https://docs.microsoft.com/en-us/style-guide/acronymslevel: suggestionignorecase: false# Ensures that the existence of 'first' implies the existence of 'second'.first: '\b([A-Z]{3,5})\b'second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'# ... with the exception of these:exceptions: - API - ASP - CLI - CPU - CSS - CSV - DEBUG - DOM - DPI - FAQ - GCC - GDB - GET - GPU - GTK - GUI - HTML - HTTP - HTTPS - IDE - JAR - JSON - JSX - LESS - LLDB - NET - NOTE - NVDA - OSS - PATH - PDF - PHP - POST - RAM - REPL - RSA - SCM - SCSS - SDK - SQL - SSH - SSL - SVG - TBD - TCP - TODO - URI - URL - USB - UTF - XML - XSS - YAML - ZIPdeleted file mode 100644+0 / −270 text lines
extends: existencemessage: "Consider removing '%s'."link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-simple-words-concise-sentencesignorecase: truelevel: warningaction: name: removetokens: - abnormally - absentmindedly - accidentally - adventurously - anxiously - arrogantly - awkwardly - bashfully - beautifully - bitterly - bleakly - blindly - blissfully - boastfully - boldly - bravely - briefly - brightly - briskly - broadly - busily - calmly - carefully - carelessly - cautiously - cheerfully - cleverly - closely - coaxingly - colorfully - continually - coolly - courageously - crossly - cruelly - curiously - daintily - dearly - deceivingly - deeply - defiantly - deliberately - delightfully - diligently - dimly - doubtfully - dreamily - easily - elegantly - energetically - enormously - enthusiastically - excitedly - extremely - fairly - faithfully - famously - ferociously - fervently - fiercely - fondly - foolishly - fortunately - frankly - frantically - freely - frenetically - frightfully - furiously - generally - generously - gently - gladly - gleefully - gracefully - gratefully - greatly - greedily - happily - hastily - healthily - heavily - helplessly - honestly - hopelessly - hungrily - innocently - inquisitively - intensely - intently - interestingly - inwardly - irritably - jaggedly - jealously - jovially - joyfully - joyously - jubilantly - judgmentally - justly - keenly - kiddingly - kindheartedly - knavishly - knowingly - knowledgeably - lazily - lightly - limply - lively - loftily - longingly - loosely - loudly - lovingly - loyally - madly - majestically - meaningfully - mechanically - merrily - miserably - mockingly - mortally - mysteriously - naturally - nearly - neatly - nervously - nicely - noisily - obediently - obnoxiously - oddly - offensively - optimistically - overconfidently - painfully - partially - patiently - perfectly - playfully - politely - poorly - positively - potentially - powerfully - promptly - properly - punctually - quaintly - queasily - queerly - questionably - quickly - quietly - quirkily - quizzically - randomly - rapidly - rarely - readily - really - reassuringly - recklessly - regularly - reluctantly - repeatedly - reproachfully - restfully - righteously - rightfully - rigidly - roughly - rudely - safely - scarcely - scarily - searchingly - sedately - seemingly - selfishly - separately - seriously - shakily - sharply - sheepishly - shrilly - shyly - silently - sleepily - slowly - smoothly - softly - solemnly - solidly - speedily - stealthily - sternly - strictly - suddenly - supposedly - surprisingly - suspiciously - sweetly - swiftly - sympathetically - tenderly - tensely - terribly - thankfully - thoroughly - thoughtfully - tightly - tremendously - triumphantly - truthfully - ultimately - unabashedly - unaccountably - unbearably - unethically - unexpectedly - unfortunately - unimpressively - unnaturally - unnecessarily - urgently - usefully - uselessly - utterly - vacantly - vaguely - vainly - valiantly - vastly - verbally - very - viciously - victoriously - violently - vivaciously - voluntarily - warmly - weakly - wearily - wetly - wholly - wildly - willfully - wisely - woefully - wonderfully - worriedly - yawningly - yearningly - yieldingly - youthfully - zealously - zestfully - zestilydeleted file mode 100644+0 / −11 text lines
deleted file mode 100644+0 / −14 text lines
extends: existencemessage: "Don't use '%s'."# See the A-Z word listlink: https://docs.microsoft.com/en-us/style-guideignorecase: truelevel: errortokens: - abortion - and so on - app(?:lication)s? (?:developer|program) - app(?:lication)? file - backbone - backend - contiguous selectiondeleted file mode 100644+0 / −120 text lines
extends: substitutionmessage: "Consider using '%s' instead of '%s'."link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-simple-words-concise-sentencesignorecase: truelevel: suggestionaction: name: replaceswap: "approximate(?:ly)?": about abundance: plenty accelerate: speed up accentuate: stress accompany: go with accomplish: carry out|do accorded: given accordingly: so accrue: add accurate: right|exact acquiesce: agree acquire: get|buy additional: more|extra address: discuss addressees: you adjacent to: next to adjustment: change admissible: allowed advantageous: helpful advise: tell aggregate: total aircraft: plane alleviate: ease allocate: assign|divide alternatively: or alternatives: choices|options ameliorate: improve amend: change anticipate: expect apparent: clear|plain ascertain: discover|find out assistance: help attain: meet attempt: try authorize: allow belated: late bestow: give cease: stop|end collaborate: work together commence: begin compensate: pay component: part comprise: form|include concept: idea concerning: about confer: give|award consequently: so consolidate: merge constitutes: forms contains: has convene: meet demonstrate: show|prove depart: leave designate: choose desire: want|wish determine: decide|find detrimental: bad|harmful disclose: share|tell discontinue: stop disseminate: send|give eliminate: end elucidate: explain employ: use enclosed: inside|included encounter: meet endeavor: try enumerate: count equitable: fair equivalent: equal exclusively: only expedite: hurry facilitate: ease females: women finalize: complete|finish frequently: often identical: same incorrect: wrong indication: sign initiate: start|begin itemized: listed jeopardize: risk liaise: work with|partner with maintain: keep|support methodology: method modify: change monitor: check|watch multiple: many necessitate: cause notify: tell numerous: many objective: aim|goal obligate: bind|compel optimum: best|most permit: let portion: part possess: own previous: earlier previously: before prioritize: rank procure: buy provide: give|offer purchase: buy relocate: move solicit: request state-of-the-art: latest subsequent: later|next substantial: large sufficient: enough terminate: end transmit: send utilization: use utilize: usedeleted file mode 100644+0 / −30 text lines
extends: substitutionmessage: "Use '%s' instead of '%s'."link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-contractionslevel: errorignorecase: trueaction: name: replaceswap: are not: aren't cannot: can't could not: couldn't did not: didn't do not: don't does not: doesn't has not: hasn't have not: haven't how is: how's is not: isn't it is: it's should not: shouldn't that is: that's they are: they're was not: wasn't we are: we're we have: we've were not: weren't what is: what's when is: when's where is: where's will not: won'tdeleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −8 text lines
extends: existencemessage: Use 'July 31, 2016' format, not '%s'.link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-termsignorecase: truelevel: errornonword: truetokens: - '\d{1,2} (?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)|May|Jun(?:e)|Jul(?:y)|Aug(?:ust)|Sep(?:tember)?|Oct(?:ober)|Nov(?:ember)?|Dec(?:ember)?) \d{4}'deleted file mode 100644+0 / −40 text lines
extends: existencemessage: "Don't use ordinal numbers for dates."link: https://docs.microsoft.com/en-us/style-guide/numbers#numbers-in-dateslevel: errornonword: trueignorecase: trueraw: - \b(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)|May|Jun(?:e)|Jul(?:y)|Aug(?:ust)|Sep(?:tember)?|Oct(?:ober)|Nov(?:ember)?|Dec(?:ember)?)\b\s*tokens: - first - second - third - fourth - fifth - sixth - seventh - eighth - ninth - tenth - eleventh - twelfth - thirteenth - fourteenth - fifteenth - sixteenth - seventeenth - eighteenth - nineteenth - twentieth - twenty-first - twenty-second - twenty-third - twenty-fourth - twenty-fifth - twenty-sixth - twenty-seventh - twenty-eighth - twenty-ninth - thirtieth - thirty-firstdeleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −9 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −12 text lines
extends: substitutionmessage: "Use '%s' instead of '%s'."link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-wordsignorecase: truelevel: errornonword: trueaction: name: replaceswap: '\b(?:eg|e\.g\.)[\s,]': for example '\b(?:ie|i\.e\.)[\s,]': that isdeleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −44 text lines
extends: substitutionmessage: "Consider using '%s' instead of '%s'."ignorecase: truelevel: errorswap: (?:alumna|alumnus): graduate (?:alumnae|alumni): graduates air(?:m[ae]n|wom[ae]n): pilot(s) anchor(?:m[ae]n|wom[ae]n): anchor(s) authoress: author camera(?:m[ae]n|wom[ae]n): camera operator(s) chair(?:m[ae]n|wom[ae]n): chair(s) congress(?:m[ae]n|wom[ae]n): member(s) of congress door(?:m[ae]|wom[ae]n): concierge(s) draft(?:m[ae]n|wom[ae]n): drafter(s) fire(?:m[ae]n|wom[ae]n): firefighter(s) fisher(?:m[ae]n|wom[ae]n): fisher(s) fresh(?:m[ae]n|wom[ae]n): first-year student(s) garbage(?:m[ae]n|wom[ae]n): waste collector(s) lady lawyer: lawyer ladylike: courteous landlord: building manager mail(?:m[ae]n|wom[ae]n): mail carriers man and wife: husband and wife man enough: strong enough mankind: human kind manmade: manufactured manpower: personnel men and girls: men and women middle(?:m[ae]n|wom[ae]n): intermediary news(?:m[ae]n|wom[ae]n): journalist(s) ombuds(?:man|woman): ombuds oneupmanship: upstaging poetess: poet police(?:m[ae]n|wom[ae]n): police officer(s) repair(?:m[ae]n|wom[ae]n): technician(s) sales(?:m[ae]n|wom[ae]n): salesperson or sales people service(?:m[ae]n|wom[ae]n): soldier(s) steward(?:ess)?: flight attendant tribes(?:m[ae]n|wom[ae]n): tribe member(s) waitress: waiter woman doctor: doctor woman scientist[s]?: scientist(s) work(?:m[ae]n|wom[ae]n): worker(s)deleted file mode 100644+0 / −11 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −28 text lines
extends: capitalizationmessage: "'%s' should use sentence-style capitalization."link: https://docs.microsoft.com/en-us/style-guide/capitalizationlevel: suggestionscope: headingmatch: $sentenceindicators: - ':'exceptions: - Azure - CLI - Code - Cosmos - Docker - Emmet - I - Kubernetes - Linux - macOS - Marketplace - MongoDB - REPL - Studio - TypeScript - URLs - Visual - VS - Windowsdeleted file mode 100644+0 / −14 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −183 text lines
extends: existencemessage: "'%s' looks like passive voice."ignorecase: truelevel: suggestionraw: - \b(am|are|were|being|is|been|was|be)\b\s*tokens: - '[\w]+ed' - awoken - beat - become - been - begun - bent - beset - bet - bid - bidden - bitten - bled - blown - born - bought - bound - bred - broadcast - broken - brought - built - burnt - burst - cast - caught - chosen - clung - come - cost - crept - cut - dealt - dived - done - drawn - dreamt - driven - drunk - dug - eaten - fallen - fed - felt - fit - fled - flown - flung - forbidden - foregone - forgiven - forgotten - forsaken - fought - found - frozen - given - gone - gotten - ground - grown - heard - held - hidden - hit - hung - hurt - kept - knelt - knit - known - laid - lain - leapt - learnt - led - left - lent - let - lighted - lost - made - meant - met - misspelt - mistaken - mown - overcome - overdone - overtaken - overthrown - paid - pled - proven - put - quit - read - rid - ridden - risen - run - rung - said - sat - sawn - seen - sent - set - sewn - shaken - shaven - shed - shod - shone - shorn - shot - shown - shrunk - shut - slain - slept - slid - slit - slung - smitten - sold - sought - sown - sped - spent - spilt - spit - split - spoken - spread - sprung - spun - stolen - stood - stridden - striven - struck - strung - stuck - stung - stunk - sung - sunk - swept - swollen - sworn - swum - swung - taken - taught - thought - thrived - thrown - thrust - told - torn - trodden - understood - upheld - upset - wed - wept - withheld - withstood - woken - won - worn - wound - woven - written - wrungdeleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −43 text lines
extends: substitutionmessage: "Prefer '%s' over '%s'."level: warningignorecase: trueaction: name: replaceswap: '(?:agent|virtual assistant|intelligent personal assistant)': personal digital assistant '(?:drive C:|drive C>|C: drive)': drive C '(?:internet bot|web robot)s?': bot(s) '(?:microsoft cloud|the cloud)': cloud '(?:mobile|smart) ?phone': phone '24/7': every day 'audio(?:-| )book': audiobook 'back(?:-| )light': backlight 'chat ?bots?': chatbot(s) adaptor: adapter administrate: administer afterwards: afterward alphabetic: alphabetical alphanumerical: alphanumeric anti-aliasing: antialiasing anti-malware: antimalware anti-spyware: antispyware anti-virus: antivirus appendixes: appendices artificial intelligence: artificial intelligence assembler: assembly language bpp: bpp bps: bps caap: CaaP conversation-as-a-platform: conversation as a platform eb: EB gb: GB gbps: Gbps kb: KB keypress: keystroke mb: MB pb: PB tb: TB zb: ZB viz: namely ergo: thereforedeleted file mode 100644+0 / −10 text lines
deleted file mode 100644+0 / −16 text lines
extends: existencemessage: "Don't spell out the number in '%s'."link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/units-of-measure-termslevel: errorraw: - '[a-zA-Z]+\s'tokens: - '(?:centi|milli)?meters' - '(?:kilo)?grams' - '(?:kilo)?meters' - '(?:mega)?pixels' - cm - inches - lb - miles - poundsdeleted file mode 100644+0 / −25 text lines
extends: existencemessage: "Verify your use of '%s' with the A-Z word list."link: 'https://docs.microsoft.com/en-us/style-guide'level: suggestionignorecase: truetokens: - above - accessible - actionable - against - alarm - alert - alias - allows? - and/or - as well as - assure - author - avg - beta - ensure - he - insure - sample - shedeleted file mode 100644+0 / −11 text lines
deleted file mode 100644+0 / −122 text lines
extends: substitutionmessage: "Consider using '%s' instead of '%s'."link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-simple-words-concise-sentencesignorecase: truelevel: warningaction: name: replaceswap: (?:give|gave) rise to: lead to (?:previous|prior) to: before a (?:large)? majority of: most a (?:large)? number of: many a myriad of: myriad adversely impact: hurt all across: across all of a sudden: suddenly all of these: these all of: all all-time record: record almost all: most almost never: seldom along the lines of: similar to an adequate number of: enough an appreciable number of: many an estimated: about any and all: all are in agreement: agree as a matter of fact: in fact as a means of: to as a result of: because of as of yet: yet as per: per at a later date: later at all times: always at the present time: now at this point in time: at this point based in large part on: based on based on the fact that: because basic necessity: necessity because of the fact that: because came to a realization: realized came to an abrupt end: ended abruptly carry out an evaluation of: evaluate close down: close closed down: closed complete stranger: stranger completely separate: separate concerning the matter of: regarding conduct a review of: review conduct an investigation: investigate conduct experiments: experiment continue on: continue despite the fact that: although disappear from sight: disappear drag and drop: drag drag-and-drop: drag doomed to fail: doomed due to the fact that: because during the period of: during during the time that: while emergency situation: emergency except when: unless excessive number: too many extend an invitation: invite fall down: fall fell down: fell for the duration of: during gather together: gather has the ability to: can has the capacity to: can has the opportunity to: could hold a meeting: meet if this is not the case: if not in a careful manner: carefully in a thoughtful manner: thoughtfully in a timely manner: timely in an effort to: to in between: between in lieu of: instead of in many cases: often in most cases: usually in order to: to in some cases: sometimes in spite of the fact that: although in spite of: despite in the (?:very)? near future: soon in the event that: if in the neighborhood of: roughly in the vicinity of: close to it would appear that: apparently lift up: lift made reference to: referred to make reference to: refer to mix together: mix none at all: none not in a position to: unable not possible: impossible of major importance: important perform an assessment of: assess pertaining to: about place an order: order plays a key role in: is essential to present time: now readily apparent: apparent some of the: some span across: span subsequent to: after successfully complete: complete sufficient number (?:of)?: enough take action: act take into account: consider the question as to whether: whether there is no doubt but that: doubtless this day and age: this age this is a subject that: this subject time (?:frame|period): time under the provisions of: under until such time as: until used for fuel purposes: used for fuel whether or not: whether with regard to: regarding with the exception of: except fordeleted file mode 100644+0 / −4 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −48 text lines
extends: substitutionmessage: "Consider using '%s' instead of '%s'."level: erroraction: name: replaceswap: (?:bull|ox)-like: taurine (?:calf|veal)-like: vituline (?:crow|raven)-like: corvine (?:leopard|panther)-like: pardine bird-like: avine centipede-like: scolopendrine crab-like: cancrine crocodile-like: crocodiline deer-like: damine eagle-like: aquiline earthworm-like: lumbricine falcon-like: falconine ferine: wild animal-like fish-like: piscine fox-like: vulpine frog-like: ranine goat-like: hircine goose-like: anserine gull-like: laridine hare-like: leporine hawk-like: accipitrine hippopotamus-like: hippopotamine lizard-like: lacertine mongoose-like: viverrine mouse-like: murine ostrich-like: struthionine peacock-like: pavonine porcupine-like: hystricine rattlesnake-like: crotaline sable-like: zibeline sheep-like: ovine shrew-like: soricine sparrow-like: passerine swallow-like: hirundine swine-like: suilline tiger-like: tigrine viper-like: viperine vulture-like: vulturine wasp-like: vespine wolf-like: lupine woodpecker-like: picine zebra-like: zebrinedeleted file mode 100644+0 / −9 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −52 text lines
extends: existencemessage: "'%s' is archaic."ignorecase: truelevel: errortokens: - alack - anent - begat - belike - betimes - boughten - brocage - brokage - camarade - chiefer - chiefest - Christiana - completely obsolescent - cozen - divers - deflexion - fain - forsooth - foreclose from - haply - howbeit - illumine - in sooth - maugre - meseems - methinks - nigh - peradventure - perchance - saith - shew - sistren - spake - to wit - verily - whilom - withal - wot - enclosed please find - please find enclosed - enclosed herewith - enclosed herein - inforce - ex postfacto - foreclose from - forewent - for everdeleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −782 text lines
extends: existencemessage: "'%s' is a cliche."level: errorignorecase: truetokens: - a chip off the old block - a clean slate - a dark and stormy night - a far cry - a fate worse than death - a fine kettle of fish - a loose cannon - a penny saved is a penny earned - a tough row to hoe - a word to the wise - ace in the hole - acid test - add insult to injury - against all odds - air your dirty laundry - alas and alack - all fun and games - all hell broke loose - all in a day's work - all talk, no action - all thumbs - all your eggs in one basket - all's fair in love and war - all's well that ends well - almighty dollar - American as apple pie - an axe to grind - another day, another dollar - armed to the teeth - as luck would have it - as old as time - as the crow flies - at loose ends - at my wits end - at the end of the day - avoid like the plague - babe in the woods - back against the wall - back in the saddle - back to square one - back to the drawing board - bad to the bone - badge of honor - bald faced liar - bald-faced lie - ballpark figure - banging your head against a brick wall - baptism by fire - barking up the wrong tree - bat out of hell - be all and end all - beat a dead horse - beat around the bush - been there, done that - beggars can't be choosers - behind the eight ball - bend over backwards - benefit of the doubt - bent out of shape - best thing since sliced bread - bet your bottom dollar - better half - better late than never - better mousetrap - better safe than sorry - between a rock and a hard place - between a rock and a hard place - between Scylla and Charybdis - between the devil and the deep blue see - betwixt and between - beyond the pale - bide your time - big as life - big cheese - big fish in a small pond - big man on campus - bigger they are the harder they fall - bird in the hand - bird's eye view - birds and the bees - birds of a feather flock together - bit the hand that feeds you - bite the bullet - bite the dust - bitten off more than he can chew - black as coal - black as pitch - black as the ace of spades - blast from the past - bleeding heart - blessing in disguise - blind ambition - blind as a bat - blind leading the blind - blissful ignorance - blood is thicker than water - blood sweat and tears - blow a fuse - blow off steam - blow your own horn - blushing bride - boils down to - bolt from the blue - bone to pick - bored stiff - bored to tears - bottomless pit - boys will be boys - bright and early - brings home the bacon - broad across the beam - broken record - brought back to reality - bulk large - bull by the horns - bull in a china shop - burn the midnight oil - burning question - burning the candle at both ends - burst your bubble - bury the hatchet - busy as a bee - but that's another story - by hook or by crook - call a spade a spade - called onto the carpet - calm before the storm - can of worms - can't cut the mustard - can't hold a candle to - case of mistaken identity - cast aspersions - cat got your tongue - cat's meow - caught in the crossfire - caught red-handed - chase a red herring - checkered past - chomping at the bit - cleanliness is next to godliness - clear as a bell - clear as mud - close to the vest - cock and bull story - cold shoulder - come hell or high water - comparing apples and oranges - compleat - conspicuous by its absence - cool as a cucumber - cool, calm, and collected - cost a king's ransom - count your blessings - crack of dawn - crash course - creature comforts - cross that bridge when you come to it - crushing blow - cry like a baby - cry me a river - cry over spilt milk - crystal clear - crystal clear - curiosity killed the cat - cut and dried - cut through the red tape - cut to the chase - cute as a bugs ear - cute as a button - cute as a puppy - cuts to the quick - cutting edge - dark before the dawn - day in, day out - dead as a doornail - decision-making process - devil is in the details - dime a dozen - divide and conquer - dog and pony show - dog days - dog eat dog - dog tired - don't burn your bridges - don't count your chickens - don't look a gift horse in the mouth - don't rock the boat - don't step on anyone's toes - don't take any wooden nickels - down and out - down at the heels - down in the dumps - down the hatch - down to earth - draw the line - dressed to kill - dressed to the nines - drives me up the wall - dubious distinction - dull as dishwater - duly authorized - dyed in the wool - eagle eye - ear to the ground - early bird catches the worm - easier said than done - easy as pie - eat your heart out - eat your words - eleventh hour - even the playing field - every dog has its day - every fiber of my being - everything but the kitchen sink - eye for an eye - eyes peeled - face the music - facts of life - fair weather friend - fall by the wayside - fan the flames - far be it from me - fast and loose - feast or famine - feather your nest - feathered friends - few and far between - fifteen minutes of fame - fills the bill - filthy vermin - fine kettle of fish - first and foremost - fish out of water - fishing for a compliment - fit as a fiddle - fit the bill - fit to be tied - flash in the pan - flat as a pancake - flip your lid - flog a dead horse - fly by night - fly the coop - follow your heart - for all intents and purposes - for free - for the birds - for what it's worth - force of nature - force to be reckoned with - forgive and forget - fox in the henhouse - free and easy - free as a bird - fresh as a daisy - full steam ahead - fun in the sun - garbage in, garbage out - gentle as a lamb - get a kick out of - get a leg up - get down and dirty - get the lead out - get to the bottom of - get with the program - get your feet wet - gets my goat - gilding the lily - gilding the lily - give and take - go against the grain - go at it tooth and nail - go for broke - go him one better - go the extra mile - go with the flow - goes without saying - good as gold - good deed for the day - good things come to those who wait - good time was had by all - good times were had by all - greased lightning - greek to me - green thumb - green-eyed monster - grist for the mill - growing like a weed - hair of the dog - hand to mouth - happy as a clam - happy as a lark - hasn't a clue - have a nice day - have a short fuse - have high hopes - have the last laugh - haven't got a row to hoe - he's got his hands full - head honcho - head over heels - hear a pin drop - heard it through the grapevine - heart's content - heavy as lead - hem and haw - high and dry - high and mighty - high as a kite - his own worst enemy - his work cut out for him - hit paydirt - hither and yon - Hobson's choice - hold your head up high - hold your horses - hold your own - hold your tongue - honest as the day is long - horns of a dilemma - horns of a dilemma - horse of a different color - hot under the collar - hour of need - I beg to differ - icing on the cake - if the shoe fits - if the shoe were on the other foot - if you catch my drift - in a jam - in a jiffy - in a nutshell - in a pig's eye - in a pinch - in a word - in hot water - in light of - in the final analysis - in the gutter - in the last analysis - in the nick of time - in the thick of it - in your dreams - innocent bystander - it ain't over till the fat lady sings - it goes without saying - it takes all kinds - it takes one to know one - it's a small world - it's not what you know, it's who you know - it's only a matter of time - ivory tower - Jack of all trades - jockey for position - jog your memory - joined at the hip - judge a book by its cover - jump down your throat - jump in with both feet - jump on the bandwagon - jump the gun - jump to conclusions - just a hop, skip, and a jump - just the ticket - justice is blind - keep a stiff upper lip - keep an eye on - keep it simple, stupid - keep the home fires burning - keep up with the Joneses - keep your chin up - keep your fingers crossed - kick the bucket - kick up your heels - kick your feet up - kid in a candy store - kill two birds with one stone - kiss of death - knock it out of the park - knock on wood - knock your socks off - know him from Adam - know the ropes - know the score - knuckle down - knuckle sandwich - knuckle under - labor of love - ladder of success - land on your feet - lap of luxury - last but not least - last but not least - last hurrah - last-ditch effort - law of the jungle - law of the land - lay down the law - leaps and bounds - let sleeping dogs lie - let the cat out of the bag - let the good times roll - let your hair down - let's talk turkey - letter perfect - lick your wounds - lies like a rug - life's a bitch - life's a grind - light at the end of the tunnel - lighter than a feather - lighter than air - like clockwork - like father like son - like taking candy from a baby - like there's no tomorrow - lion's share - live and learn - live and let live - long and short of it - long lost love - look before you leap - look down your nose - look what the cat dragged in - looking a gift horse in the mouth - looks like death warmed over - loose cannon - lose your head - lose your temper - loud as a horn - lounge lizard - loved and lost - low man on the totem pole - luck of the draw - luck of the Irish - make a mockery of - make hay while the sun shines - make money hand over fist - make my day - make the best of a bad situation - make the best of it - make your blood boil - male chauvinism - man of few words - man's best friend - mark my words - meaningful dialogue - missed the boat on that one - moment in the sun - moment of glory - moment of truth - moment of truth - money to burn - more in sorrow than in anger - more power to you - more sinned against than sinning - more than one way to skin a cat - movers and shakers - moving experience - my better half - naked as a jaybird - naked truth - neat as a pin - needle in a haystack - needless to say - neither here nor there - never look back - never say never - nip and tuck - nip in the bud - nip it in the bud - no guts, no glory - no love lost - no pain, no gain - no skin off my back - no stone unturned - no time like the present - no use crying over spilled milk - nose to the grindstone - not a hope in hell - not a minute's peace - not in my backyard - not playing with a full deck - not the end of the world - not written in stone - nothing to sneeze at - nothing ventured nothing gained - now we're cooking - off the top of my head - off the wagon - off the wall - old hat - olden days - older and wiser - older than dirt - older than Methuselah - on a roll - on cloud nine - on pins and needles - on the bandwagon - on the money - on the nose - on the rocks - on the same page - on the spot - on the tip of my tongue - on the wagon - on thin ice - once bitten, twice shy - one bad apple doesn't spoil the bushel - one born every minute - one brick short - one foot in the grave - one in a million - one red cent - only game in town - open a can of worms - open and shut case - open the flood gates - opportunity doesn't knock twice - out of pocket - out of sight, out of mind - out of the frying pan into the fire - out of the woods - out on a limb - over a barrel - over the hump - pain and suffering - pain in the - panic button - par for the course - part and parcel - party pooper - pass the buck - patience is a virtue - pay through the nose - penny pincher - perfect storm - pig in a poke - pile it on - pillar of the community - pin your hopes on - pitter patter of little feet - plain as day - plain as the nose on your face - play by the rules - play your cards right - playing the field - playing with fire - pleased as punch - plenty of fish in the sea - point with pride - poor as a church mouse - pot calling the kettle black - presidential timber - pretty as a picture - pull a fast one - pull your punches - pulled no punches - pulling your leg - pure as the driven snow - put it in a nutshell - put one over on you - put the cart before the horse - put the pedal to the metal - put your best foot forward - put your foot down - quantum jump - quantum leap - quick as a bunny - quick as a lick - quick as a wink - quick as lightning - quiet as a dormouse - rags to riches - raining buckets - raining cats and dogs - rank and file - rat race - reap what you sow - red as a beet - red herring - redound to one's credit - redound to the benefit of - reinvent the wheel - rich and famous - rings a bell - ripe old age - ripped me off - rise and shine - road to hell is paved with good intentions - rob Peter to pay Paul - roll over in the grave - rub the wrong way - ruled the roost - running in circles - sad but true - sadder but wiser - salt of the earth - scared stiff - scared to death - sea change - sealed with a kiss - second to none - see eye to eye - seen the light - seize the day - set the record straight - set the world on fire - set your teeth on edge - sharp as a tack - shirked his duties - shoot for the moon - shoot the breeze - shot in the dark - shoulder to the wheel - sick as a dog - sigh of relief - signed, sealed, and delivered - sink or swim - six of one, half a dozen of another - six of one, half a dozen of the other - skating on thin ice - slept like a log - slinging mud - slippery as an eel - slow as molasses - smart as a whip - smooth as a baby's bottom - sneaking suspicion - snug as a bug in a rug - sow wild oats - spare the rod, spoil the child - speak of the devil - spilled the beans - spinning your wheels - spitting image of - spoke with relish - spread like wildfire - spring to life - squeaky wheel gets the grease - stands out like a sore thumb - start from scratch - stick in the mud - still waters run deep - stitch in time - stop and smell the roses - straight as an arrow - straw that broke the camel's back - stretched to the breaking point - strong as an ox - stubborn as a mule - stuff that dreams are made of - stuffed shirt - sweating blood - sweating bullets - take a load off - take one for the team - take the bait - take the bull by the horns - take the plunge - takes one to know one - takes two to tango - than you can shake a stick at - the cream of the crop - the cream rises to the top - the more the merrier - the real deal - the real McCoy - the red carpet treatment - the same old story - the straw that broke the camel's back - there is no accounting for taste - thick as a brick - thick as thieves - thick as thieves - thin as a rail - think outside of the box - thinking outside the box - third time's the charm - this day and age - this hurts me worse than it hurts you - this point in time - thought leaders? - three sheets to the wind - through thick and thin - throw in the towel - throw the baby out with the bathwater - tie one on - tighter than a drum - time and time again - time is of the essence - tip of the iceberg - tired but happy - to coin a phrase - to each his own - to make a long story short - to the best of my knowledge - toe the line - tongue in cheek - too good to be true - too hot to handle - too numerous to mention - touch with a ten foot pole - tough as nails - trial and error - trials and tribulations - tried and true - trip down memory lane - twist of fate - two cents worth - two peas in a pod - ugly as sin - under the counter - under the gun - under the same roof - under the weather - until the cows come home - unvarnished truth - up the creek - uphill battle - upper crust - upset the applecart - vain attempt - vain effort - vanquish the enemy - various and sundry - vested interest - viable alternative - waiting for the other shoe to drop - wakeup call - warm welcome - watch your p's and q's - watch your tongue - watching the clock - water under the bridge - wax eloquent - wax poetic - we've got a situation here - weather the storm - weed them out - week of Sundays - went belly up - wet behind the ears - what goes around comes around - what you see is what you get - when it rains, it pours - when push comes to shove - when the cat's away - when the going gets tough, the tough get going - whet (?:the|your) appetite - white as a sheet - whole ball of wax - whole hog - whole nine yards - wild goose chase - will wonders never cease? - wisdom of the ages - wise as an owl - wolf at the door - wool pulled over our eyes - words fail me - work like a dog - world weary - worst nightmare - worth its weight in gold - writ large - wrong side of the bed - yanking your chain - yappy as a dog - years young - you are what you eat - you can run but you can't hide - you only live once - you're the boss - young and foolish - young and vibrantdeleted file mode 100644+0 / −30 text lines
extends: existencemessage: "'%s' is corporate speak."ignorecase: truelevel: errortokens: - at the end of the day - back to the drawing board - hit the ground running - get the ball rolling - low-hanging fruit - thrown under the bus - think outside the box - let's touch base - get my manager's blessing - it's on my radar - ping me - i don't have the bandwidth - no brainer - par for the course - bang for your buck - synergy - move the goal post - apples to apples - win-win - circle back around - all hands on deck - take this offline - drill-down - elephant in the room - on my platedeleted file mode 100644+0 / −5 text lines
deleted file mode 100644+0 / −15 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −10 text lines
deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −52 text lines
extends: substitutionmessage: Did you mean '%s'?ignorecase: falseaction: name: replaceswap: (?:Afrikaaner|Afrikander): Afrikaner (?:Hong Kongite|Hong Kongian): Hong Konger (?:Indianan|Indianian): Hoosier (?:Michiganite|Michiganian): Michigander (?:New Hampshireite|New Hampshireman): New Hampshirite (?:Newcastlite|Newcastleite): Novocastrian (?:Providencian|Providencer): Providentian (?:Trentian|Trentonian): Tridentine (?:Warsawer|Warsawian): Varsovian (?:Wolverhamptonite|Wolverhamptonian): Wulfrunian Alabaman: Alabamian Albuquerquian: Albuquerquean Anchoragite: Anchorageite Arizonian: Arizonan Arkansawyer: Arkansan Belarusan: Belarusian Cayman Islander: Caymanian Coloradoan: Coloradan Connecticuter: Nutmegger Fairbanksian: Fairbanksan Fort Worther: Fort Worthian Grenadian: Grenadan Halifaxer: Haligonian Hartlepoolian: Hartlepudlian Illinoisian: Illinoisan Iowegian: Iowan Leedsian: Leodenisian Liverpoolian: Liverpudlian Los Angelean: Angeleno Manchesterian: Mancunian Minneapolisian: Minneapolitan Missouran: Missourian Monacan: Monegasque Neopolitan: Neapolitan New Jerseyite: New Jerseyan New Orleansian: New Orleanian Oklahoma Citian: Oklahoma Cityan Oklahomian: Oklahoman Saudi Arabian: Saudi Seattlite: Seattleite Surinamer: Surinamese Tallahassean: Tallahasseean Tennesseean: Tennessean Trois-Rivièrester: Trifluvian Utahan: Utahn Valladolidian: Vallisoletanodeleted file mode 100644+0 / −95 text lines
extends: substitutionmessage: Consider using '%s' instead of '%s'.ignorecase: truelevel: erroraction: name: replaceswap: beau ideal: beau idéal boutonniere: boutonnière bric-a-brac: bric-à-brac cafe: café cause celebre: cause célèbre chevre: chèvre cliche: cliché consomme: consommé coup de grace: coup de grâce crudites: crudités creme brulee: crème brûlée creme de menthe: crème de menthe creme fraice: crème fraîche creme fresh: crème fraîche crepe: crêpe debutante: débutante decor: décor deja vu: déjà vu denouement: dénouement facade: façade fiance: fiancé fiancee: fiancée flambe: flambé garcon: garçon lycee: lycée maitre d: maître d menage a trois: ménage à trois negligee: négligée protege: protégé protegee: protégée puree: purée my resume: my résumé your resume: your résumé his resume: his résumé her resume: her résumé a resume: a résumé the resume: the résumé risque: risqué roue: roué soiree: soirée souffle: soufflé soupcon: soupçon touche: touché tete-a-tete: tête-à-tête voila: voilà a la carte: à la carte a la mode: à la mode emigre: émigré # Spanish loanwords El Nino: El Niño jalapeno: jalapeño La Nina: La Niña pina colada: piña colada senor: señor senora: señora senorita: señorita # Portuguese loanwords acai: açaí # German loanwords doppelganger: doppelgänger Fuhrer: Führer Gewurztraminer: Gewürztraminer vis-a-vis: vis-à-vis Ubermensch: Übermensch # Swedish loanwords filmjolk: filmjölk smorgasbord: smörgåsbord # Names, places, and companies Beyonce: Beyoncé Bronte: Brontë Champs-Elysees: Champs-Élysées Citroen: Citroën Curacao: Curaçao Lowenbrau: Löwenbräu Monegasque: Monégasque Motley Crue: Mötley Crüe Nescafe: Nescafé Queensryche: Queensrÿche Quebec: Québec Quebecois: Québécois Angstrom: Ångström angstrom: ångström Skoda: Škodadeleted file mode 100644+0 / −45 text lines
extends: substitutionmessage: Consider using '%s' instead of '%s'.ignorecase: truelevel: erroraction: name: replaceswap: (?:alumnae|alumni): graduates (?:alumna|alumnus): graduate air(?:m[ae]n|wom[ae]n): pilot(s) anchor(?:m[ae]n|wom[ae]n): anchor(s) authoress: author camera(?:m[ae]n|wom[ae]n): camera operator(s) chair(?:m[ae]n|wom[ae]n): chair(s) congress(?:m[ae]n|wom[ae]n): member(s) of congress door(?:m[ae]|wom[ae]n): concierge(s) draft(?:m[ae]n|wom[ae]n): drafter(s) fire(?:m[ae]n|wom[ae]n): firefighter(s) fisher(?:m[ae]n|wom[ae]n): fisher(s) fresh(?:m[ae]n|wom[ae]n): first-year student(s) garbage(?:m[ae]n|wom[ae]n): waste collector(s) lady lawyer: lawyer ladylike: courteous landlord: building manager mail(?:m[ae]n|wom[ae]n): mail carriers man and wife: husband and wife man enough: strong enough mankind: human kind manmade: manufactured men and girls: men and women middle(?:m[ae]n|wom[ae]n): intermediary news(?:m[ae]n|wom[ae]n): journalist(s) ombuds(?:man|woman): ombuds oneupmanship: upstaging poetess: poet police(?:m[ae]n|wom[ae]n): police officer(s) repair(?:m[ae]n|wom[ae]n): technician(s) sales(?:m[ae]n|wom[ae]n): salesperson or sales people service(?:m[ae]n|wom[ae]n): soldier(s) steward(?:ess)?: flight attendant tribes(?:m[ae]n|wom[ae]n): tribe member(s) waitress: waiter woman doctor: doctor woman scientist[s]?: scientist(s) work(?:m[ae]n|wom[ae]n): worker(s)deleted file mode 100644+0 / −39 text lines
extends: substitutionmessage: Consider using '%s' instead of '%s'.ignorecase: trueaction: name: replaceswap: (?:bunch|group|pack|flock) of chickens: brood of chickens (?:bunch|group|pack|flock) of crows: murder of crows (?:bunch|group|pack|flock) of hawks: cast of hawks (?:bunch|group|pack|flock) of parrots: pandemonium of parrots (?:bunch|group|pack|flock) of peacocks: muster of peacocks (?:bunch|group|pack|flock) of penguins: muster of penguins (?:bunch|group|pack|flock) of sparrows: host of sparrows (?:bunch|group|pack|flock) of turkeys: rafter of turkeys (?:bunch|group|pack|flock) of woodpeckers: descent of woodpeckers (?:bunch|group|pack|herd) of apes: shrewdness of apes (?:bunch|group|pack|herd) of baboons: troop of baboons (?:bunch|group|pack|herd) of badgers: cete of badgers (?:bunch|group|pack|herd) of bears: sloth of bears (?:bunch|group|pack|herd) of bullfinches: bellowing of bullfinches (?:bunch|group|pack|herd) of bullocks: drove of bullocks (?:bunch|group|pack|herd) of caterpillars: army of caterpillars (?:bunch|group|pack|herd) of cats: clowder of cats (?:bunch|group|pack|herd) of colts: rag of colts (?:bunch|group|pack|herd) of crocodiles: bask of crocodiles (?:bunch|group|pack|herd) of dolphins: school of dolphins (?:bunch|group|pack|herd) of foxes: skulk of foxes (?:bunch|group|pack|herd) of gorillas: band of gorillas (?:bunch|group|pack|herd) of hippopotami: bloat of hippopotami (?:bunch|group|pack|herd) of horses: drove of horses (?:bunch|group|pack|herd) of jellyfish: fluther of jellyfish (?:bunch|group|pack|herd) of kangeroos: mob of kangeroos (?:bunch|group|pack|herd) of monkeys: troop of monkeys (?:bunch|group|pack|herd) of oxen: yoke of oxen (?:bunch|group|pack|herd) of rhinoceros: crash of rhinoceros (?:bunch|group|pack|herd) of wild boar: sounder of wild boar (?:bunch|group|pack|herd) of wild pigs: drift of wild pigs (?:bunch|group|pack|herd) of zebras: zeal of wild pigs (?:bunch|group|pack|school) of trout: hover of troutdeleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −11 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −15 text lines
extends: substitutionmessage: "Consider using '%s' instead of '%s'."ignorecase: trueaction: name: replaceswap: homosexual man: gay man homosexual men: gay men homosexual woman: lesbian homosexual women: lesbians homosexual people: gay people homosexual couple: gay couple sexual preference: sexual orientation (?:admitted homosexual|avowed homosexual): openly gay special rights: equal rightsdeleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −358 text lines
extends: substitutionmessage: Prefer '%s' over '%s'ignorecase: trueaction: name: replaceswap: '(?:cell phone|cell-phone)': cellphone '(?:cliquey|cliquy)': cliquish '(?:pygmean|pygmaen)': pygmy '(?:retributional|retributionary)': retributive '(?:revokable|revokeable)': revocable abolishment: abolition accessary: accessory accreditate: accredit accruement: accrual accusee: accused acquaintanceship: acquaintance acquitment: acquittal administrate: administer administrated: administered administrating: administering adulterate: adulterous advisatory: advisory advocator: advocate aggrievance: grievance allegator: alleger allusory: allusive amative: amorous amortizement: amortization amphiboly: amphibology anecdotalist: anecdotist anilinctus: anilingus anticipative: anticipatory antithetic: antithetical applicative: applicable applicatory: applicable applier: applicator approbative: approbatory arbitrager: arbitrageur arsenous: arsenious ascendance: ascendancy ascendence: ascendancy ascendency: ascendancy auctorial: authorial averral: averment barbwire: barbed wire benefic: beneficent benignant: benign bestowment: bestowal betrothment: betrothal blamableness: blameworthiness butt naked: buck naked camarade: comrade carta blanca: carte blanche casualities: casualties casuality: casualty catch on fire: catch fire catholicly: catholically cease fire: ceasefire channelize: channel chaplainship: chaplaincy chrysalid: chrysalis chrysalids: chrysalises cigaret: cigarette coemployee: coworker cognitional: cognitive cohabitate: cohabit cohabitor: cohabitant collodium: collodion collusory: collusive commemoratory: commemorative commonty: commonage communicatory: communicative compensative: compensatory complacence: complacency complicitous: complicit computate: compute conciliative: conciliatory concomitancy: concomitance condonance: condonation confirmative: confirmatory congruency: congruence connotate: connote consanguineal: consanguine conspicuity: conspicuousness conspiratorialist: conspirator constitutionist: constitutionalist contingence: contigency contributary: contributory contumacity: contumacy conversible: convertible conveyal: conveyance copartner: partner copartnership: partnership corroboratory: corroborative cotemporaneous: contemporaneous cotemporary: contemporary criminate: incriminate culpatory: inculpatory cumbrance: encumbrance cumulate: accumulate curatory: curative daredeviltry: daredevilry deceptious: deceptive defamative: defamatory defraudulent: fraudulent degeneratory: degenerative delimitate: delimit delusory: delusive denouncement: denunciation depositee: depositary depreciative: depreciatory deprival: deprivation derogative: derogatory destroyable: destructible detoxicate: detoxify detractory: detractive deviancy: deviance deviationist: deviant digamy: deuterogamy digitalize: digitize diminishment: diminution diplomatist: diplomat disassociate: dissociate disciplinatory: disciplinary discriminant: discriminating disenthrone: dethrone disintegratory: disintegrative dismission: dismissal disorientate: disorient disorientated: disoriented disquieten: disquiet distraite: distrait divergency: divergence dividable: divisible doctrinary: doctrinaire documental: documentary domesticize: domesticate duplicatory: duplicative duteous: dutiful educationalist: educationist educatory: educative enigmatas: enigmas enlargen: enlarge enswathe: swathe epical: epic erotism: eroticism ethician: ethicist ex officiis: ex officio exculpative: exculpatory exigeant: exigent exigence: exigency exotism: exoticism expedience: expediency expediential: expedient extensible: extendable eying: eyeing fiefdom: fief flagrance: flagrancy flatulency: flatulence fraudful: fraudulent funebrial: funereal geographical: geographic geometrical: geometric gerry-rigged: jury-rigged goatherder: goatherd gustatorial: gustatory habitude: habit henceforward: henceforth hesitance: hesitancy heterogenous: heterogeneous hierarchic: hierarchical hindermost: hindmost honorand: honoree hypostasize: hypostatize hysteric: hysterical idolatrize: idolize impanel: empanel imperviable: impervious importunacy: importunity impotency: impotence imprimatura: imprimatur improprietous: improper inalterable: unalterable incitation: incitement incommunicative: uncommunicative inconsistence: inconsistency incontrollable: uncontrollable incurment: incurrence indow: endow indue: endue inhibitive: inhibitory innavigable: unnavigable innovational: innovative inquisitional: inquisitorial insistment: insistence insolvable: unsolvable instillment: instillation instinctual: instinctive insuror: insurer insurrectional: insurrectionary interpretate: interpret intervenience: intervention ironical: ironic jerry-rigged: jury-rigged judgmatic: judgmental labyrinthian: labyrinthine laudative: laudatory legitimatization: legitimation legitimatize: legitimize legitimization: legitimation lengthways: lengthwise life-sized: life-size liquorice: licorice lithesome: lithe lollipop: lollypop loth: loath lubricous: lubricious maihem: mayhem medicinal marijuana: medical marijuana meliorate: ameliorate minimalize: minimize mirk: murk mirky: murky misdoubt: doubt monetarize: monetize moveable: movable narcism: narcissism neglective: neglectful negligency: negligence neologizer: neologist neurologic: neurological nicknack: knickknack nictate: nictitate nonenforceable: unenforceable normalcy: normality numbedness: numbness omittable: omissible onomatopoetic: onomatopoeic opinioned: opined optimum advantage: optimal advantage orientate: orient outsized: outsize oversized: oversize overthrowal: overthrow pacificist: pacifist paederast: pederast parachronism: anachronism parti-color: parti-colored participative: participatory party-colored: parti-colored pediatrist: pediatrician penumbrous: penumbral perjorative: pejorative permissory: permissive permutate: permute personation: impersonation pharmaceutic: pharmaceutical pleuritis: pleurisy policy holder: policyholder policyowner: policyholder politicalize: politicize precedency: precedence preceptoral: preceptorial precipitance: precipitancy precipitant: precipitate preclusory: preclusive precolumbian: pre-Columbian prefectoral: prefectorial preponderately: preponderantly preserval: preservation preventative: preventive proconsulship: proconsulate procreational: procreative procurance: procurement propelment: propulsion propulsory: propulsive prosecutive: prosecutory protectory: protective provocatory: provocative pruriency: prurience psychal: psychical punitory: punitive quantitate: quantify questionary: questionnaire quiescency: quiescence rabbin: rabbi reasonability: reasonableness recidivistic: recidivous recriminative: recriminatory recruital: recruitment recurrency: recurrence recusance: recusancy recusation: recusal recusement: recusal redemptory: redemptive referrable: referable referrible: referable refutatory: refutative remitment: remittance remittal: remission renouncement: renunciation renunciable: renounceable reparatory: reparative repudiative: repudiatory requitement: requital rescindment: rescission restoral: restoration reticency: reticence reviewal: review revisal: revision revisional: revisionary revolute: revolt saliency: salience salutiferous: salutary sensatory: sensory sessionary: sessional shareowner: shareholder sicklily: sickly signator: signatory slanderize: slander societary: societal sodomist: sodomite solicitate: solicit speculatory: speculative spiritous: spirituous statutorial: statutory submergeable: submersible submittal: submission subtile: subtle succuba: succubus sufficience: sufficiency suppliant: supplicant surmisal: surmise suspendible: suspendable synthetize: synthesize systemize: systematize tactual: tactile tangental: tangential tautologous: tautological tee-shirt: T-shirt thenceforward: thenceforth transiency: transience transposal: transposition unfrequent: infrequent unreasonability: unreasonableness unrevokable: irrevocable unsubstantial: insubstantial usurpature: usurpation variative: variational vegetive: vegetative vindicative: vindictive vituperous: vituperative vociferant: vociferous volitive: volitional wolverene: wolverine wolvish: wolfish Zoroastrism: Zoroastrianismdeleted file mode 100644+0 / −38 text lines
extends: substitutionmessage: "Consider using '%s' instead of '%s'."ignorecase: truelevel: erroraction: name: replaceswap: affrontery: effrontery analyzation: analysis annoyment: annoyance confirmant: confirmand confirmants: confirmands conversate: converse crained: cranded discomforture: discomfort|discomfiture dispersement: disbursement|dispersal doubtlessly: doubtless|undoubtedly forebearance: forbearance improprietous: improper inclimate: inclement inimicable: inimical irregardless: regardless minimalize: minimize minimalized: minimized minimalizes: minimizes minimalizing: minimizing optimalize: optimize paralyzation: paralysis pettifogger: pettifog proprietous: proper relative inexpense: relatively low price|affordability seldomly: seldom thusly: thus uncategorically: categorically undoubtably: undoubtedly|indubitably unequivocable: unequivocal unmercilessly: mercilessly unrelentlessly: unrelentingly|relentlesslydeleted file mode 100644+0 / −22 text lines
extends: existencemessage: "'%s' is an oxymoron."ignorecase: truelevel: errortokens: - amateur expert - increasingly less - advancing backwards - alludes explicitly to - explicitly alludes to - totally obsolescent - completely obsolescent - generally always - usually always - increasingly less - build down - conspicuous absence - exact estimate - found missing - intense apathy - mandatory choice - organized messdeleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −30 text lines
extends: existencemessage: "'%s' is redundant."level: erroraction: name: edit params: - split - ' ' - '0'tokens: - ABM missile - ACT test - ABM missiles - ABS braking system - ATM machine - CD disc - CPI Index - GPS system - GUI interface - HIV virus - ISBN number - LCD display - PDF format - PIN number - RAS syndrome - RIP in peace - please RSVP - SALT talks - SAT test - UPC codesdeleted file mode 100644+0 / −12 text lines
Copyright © 2014–2015, Jordan Suchow, Michael Pacer, and Lara A. RossAll rights reserved.Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −17 text lines
extends: consistencymessage: "Inconsistent spelling of '%s'."level: errorignorecase: trueeither: advisor: adviser centre: center colour: color emphasise: emphasize finalise: finalize focussed: focused labour: labor learnt: learned organise: organize organised: organized organising: organizing recognise: recognizedeleted file mode 100644+0 / −11 text lines
deleted file mode 100644+0 / −50 text lines
extends: existencemessage: "'%s' is not comparable"ignorecase: truelevel: erroraction: name: edit params: - split - ' ' - '1'raw: - \b(?:absolutely|most|more|less|least|very|quite|largely|extremely|increasingly|kind of|mildy|hardly|greatly|sort of)\b\s*tokens: - absolute - adequate - complete - correct - certain - devoid - entire - 'false' - fatal - favorite - final - ideal - impossible - inevitable - infinite - irrevocable - main - manifest - only - paramount - perfect - perpetual - possible - preferable - principal - singular - stationary - sufficient - 'true' - unanimous - unavoidable - unbroken - uniform - unique - universal - void - wholedeleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −17 text lines
{ "author": "jdkato", "description": "A Vale-compatible implementation of the proselint linter.", "email": "support@errata.ai", "lang": "en", "url": "https://github.com/errata-ai/proselint/releases/latest/download/proselint.zip", "feed": "https://github.com/errata-ai/proselint/releases.atom", "issues": "https://github.com/errata-ai/proselint/issues/new", "license": "BSD-3-Clause", "name": "proselint", "sources": [ "https://github.com/amperser/proselint" ], "vale_version": ">=1.0.0", "coverage": 0.0, "version": "0.1.0"}deleted file mode 100644+0 / −702 text lines
extends: existencemessage: "Try to avoid using clichés like '%s'."ignorecase: truelevel: warningtokens: - a chip off the old block - a clean slate - a dark and stormy night - a far cry - a fine kettle of fish - a loose cannon - a penny saved is a penny earned - a tough row to hoe - a word to the wise - ace in the hole - acid test - add insult to injury - against all odds - air your dirty laundry - all fun and games - all in a day's work - all talk, no action - all thumbs - all your eggs in one basket - all's fair in love and war - all's well that ends well - almighty dollar - American as apple pie - an axe to grind - another day, another dollar - armed to the teeth - as luck would have it - as old as time - as the crow flies - at loose ends - at my wits end - avoid like the plague - babe in the woods - back against the wall - back in the saddle - back to square one - back to the drawing board - bad to the bone - badge of honor - bald faced liar - ballpark figure - banging your head against a brick wall - baptism by fire - barking up the wrong tree - bat out of hell - be all and end all - beat a dead horse - beat around the bush - been there, done that - beggars can't be choosers - behind the eight ball - bend over backwards - benefit of the doubt - bent out of shape - best thing since sliced bread - bet your bottom dollar - better half - better late than never - better mousetrap - better safe than sorry - between a rock and a hard place - beyond the pale - bide your time - big as life - big cheese - big fish in a small pond - big man on campus - bigger they are the harder they fall - bird in the hand - bird's eye view - birds and the bees - birds of a feather flock together - bit the hand that feeds you - bite the bullet - bite the dust - bitten off more than he can chew - black as coal - black as pitch - black as the ace of spades - blast from the past - bleeding heart - blessing in disguise - blind ambition - blind as a bat - blind leading the blind - blood is thicker than water - blood sweat and tears - blow off steam - blow your own horn - blushing bride - boils down to - bolt from the blue - bone to pick - bored stiff - bored to tears - bottomless pit - boys will be boys - bright and early - brings home the bacon - broad across the beam - broken record - brought back to reality - bull by the horns - bull in a china shop - burn the midnight oil - burning question - burning the candle at both ends - burst your bubble - bury the hatchet - busy as a bee - by hook or by crook - call a spade a spade - called onto the carpet - calm before the storm - can of worms - can't cut the mustard - can't hold a candle to - case of mistaken identity - cat got your tongue - cat's meow - caught in the crossfire - caught red-handed - checkered past - chomping at the bit - cleanliness is next to godliness - clear as a bell - clear as mud - close to the vest - cock and bull story - cold shoulder - come hell or high water - cool as a cucumber - cool, calm, and collected - cost a king's ransom - count your blessings - crack of dawn - crash course - creature comforts - cross that bridge when you come to it - crushing blow - cry like a baby - cry me a river - cry over spilt milk - crystal clear - curiosity killed the cat - cut and dried - cut through the red tape - cut to the chase - cute as a bugs ear - cute as a button - cute as a puppy - cuts to the quick - dark before the dawn - day in, day out - dead as a doornail - devil is in the details - dime a dozen - divide and conquer - dog and pony show - dog days - dog eat dog - dog tired - don't burn your bridges - don't count your chickens - don't look a gift horse in the mouth - don't rock the boat - don't step on anyone's toes - don't take any wooden nickels - down and out - down at the heels - down in the dumps - down the hatch - down to earth - draw the line - dressed to kill - dressed to the nines - drives me up the wall - dull as dishwater - dyed in the wool - eagle eye - ear to the ground - early bird catches the worm - easier said than done - easy as pie - eat your heart out - eat your words - eleventh hour - even the playing field - every dog has its day - every fiber of my being - everything but the kitchen sink - eye for an eye - face the music - facts of life - fair weather friend - fall by the wayside - fan the flames - feast or famine - feather your nest - feathered friends - few and far between - fifteen minutes of fame - filthy vermin - fine kettle of fish - fish out of water - fishing for a compliment - fit as a fiddle - fit the bill - fit to be tied - flash in the pan - flat as a pancake - flip your lid - flog a dead horse - fly by night - fly the coop - follow your heart - for all intents and purposes - for the birds - for what it's worth - force of nature - force to be reckoned with - forgive and forget - fox in the henhouse - free and easy - free as a bird - fresh as a daisy - full steam ahead - fun in the sun - garbage in, garbage out - gentle as a lamb - get a kick out of - get a leg up - get down and dirty - get the lead out - get to the bottom of - get your feet wet - gets my goat - gilding the lily - give and take - go against the grain - go at it tooth and nail - go for broke - go him one better - go the extra mile - go with the flow - goes without saying - good as gold - good deed for the day - good things come to those who wait - good time was had by all - good times were had by all - greased lightning - greek to me - green thumb - green-eyed monster - grist for the mill - growing like a weed - hair of the dog - hand to mouth - happy as a clam - happy as a lark - hasn't a clue - have a nice day - have high hopes - have the last laugh - haven't got a row to hoe - head honcho - head over heels - hear a pin drop - heard it through the grapevine - heart's content - heavy as lead - hem and haw - high and dry - high and mighty - high as a kite - hit paydirt - hold your head up high - hold your horses - hold your own - hold your tongue - honest as the day is long - horns of a dilemma - horse of a different color - hot under the collar - hour of need - I beg to differ - icing on the cake - if the shoe fits - if the shoe were on the other foot - in a jam - in a jiffy - in a nutshell - in a pig's eye - in a pinch - in a word - in hot water - in the gutter - in the nick of time - in the thick of it - in your dreams - it ain't over till the fat lady sings - it goes without saying - it takes all kinds - it takes one to know one - it's a small world - it's only a matter of time - ivory tower - Jack of all trades - jockey for position - jog your memory - joined at the hip - judge a book by its cover - jump down your throat - jump in with both feet - jump on the bandwagon - jump the gun - jump to conclusions - just a hop, skip, and a jump - just the ticket - justice is blind - keep a stiff upper lip - keep an eye on - keep it simple, stupid - keep the home fires burning - keep up with the Joneses - keep your chin up - keep your fingers crossed - kick the bucket - kick up your heels - kick your feet up - kid in a candy store - kill two birds with one stone - kiss of death - knock it out of the park - knock on wood - knock your socks off - know him from Adam - know the ropes - know the score - knuckle down - knuckle sandwich - knuckle under - labor of love - ladder of success - land on your feet - lap of luxury - last but not least - last hurrah - last-ditch effort - law of the jungle - law of the land - lay down the law - leaps and bounds - let sleeping dogs lie - let the cat out of the bag - let the good times roll - let your hair down - let's talk turkey - letter perfect - lick your wounds - lies like a rug - life's a bitch - life's a grind - light at the end of the tunnel - lighter than a feather - lighter than air - like clockwork - like father like son - like taking candy from a baby - like there's no tomorrow - lion's share - live and learn - live and let live - long and short of it - long lost love - look before you leap - look down your nose - look what the cat dragged in - looking a gift horse in the mouth - looks like death warmed over - loose cannon - lose your head - lose your temper - loud as a horn - lounge lizard - loved and lost - low man on the totem pole - luck of the draw - luck of the Irish - make hay while the sun shines - make money hand over fist - make my day - make the best of a bad situation - make the best of it - make your blood boil - man of few words - man's best friend - mark my words - meaningful dialogue - missed the boat on that one - moment in the sun - moment of glory - moment of truth - money to burn - more power to you - more than one way to skin a cat - movers and shakers - moving experience - naked as a jaybird - naked truth - neat as a pin - needle in a haystack - needless to say - neither here nor there - never look back - never say never - nip and tuck - nip it in the bud - no guts, no glory - no love lost - no pain, no gain - no skin off my back - no stone unturned - no time like the present - no use crying over spilled milk - nose to the grindstone - not a hope in hell - not a minute's peace - not in my backyard - not playing with a full deck - not the end of the world - not written in stone - nothing to sneeze at - nothing ventured nothing gained - now we're cooking - off the top of my head - off the wagon - off the wall - old hat - older and wiser - older than dirt - older than Methuselah - on a roll - on cloud nine - on pins and needles - on the bandwagon - on the money - on the nose - on the rocks - on the spot - on the tip of my tongue - on the wagon - on thin ice - once bitten, twice shy - one bad apple doesn't spoil the bushel - one born every minute - one brick short - one foot in the grave - one in a million - one red cent - only game in town - open a can of worms - open and shut case - open the flood gates - opportunity doesn't knock twice - out of pocket - out of sight, out of mind - out of the frying pan into the fire - out of the woods - out on a limb - over a barrel - over the hump - pain and suffering - pain in the - panic button - par for the course - part and parcel - party pooper - pass the buck - patience is a virtue - pay through the nose - penny pincher - perfect storm - pig in a poke - pile it on - pillar of the community - pin your hopes on - pitter patter of little feet - plain as day - plain as the nose on your face - play by the rules - play your cards right - playing the field - playing with fire - pleased as punch - plenty of fish in the sea - point with pride - poor as a church mouse - pot calling the kettle black - pretty as a picture - pull a fast one - pull your punches - pulling your leg - pure as the driven snow - put it in a nutshell - put one over on you - put the cart before the horse - put the pedal to the metal - put your best foot forward - put your foot down - quick as a bunny - quick as a lick - quick as a wink - quick as lightning - quiet as a dormouse - rags to riches - raining buckets - raining cats and dogs - rank and file - rat race - reap what you sow - red as a beet - red herring - reinvent the wheel - rich and famous - rings a bell - ripe old age - ripped me off - rise and shine - road to hell is paved with good intentions - rob Peter to pay Paul - roll over in the grave - rub the wrong way - ruled the roost - running in circles - sad but true - sadder but wiser - salt of the earth - scared stiff - scared to death - sealed with a kiss - second to none - see eye to eye - seen the light - seize the day - set the record straight - set the world on fire - set your teeth on edge - sharp as a tack - shoot for the moon - shoot the breeze - shot in the dark - shoulder to the wheel - sick as a dog - sigh of relief - signed, sealed, and delivered - sink or swim - six of one, half a dozen of another - skating on thin ice - slept like a log - slinging mud - slippery as an eel - slow as molasses - smart as a whip - smooth as a baby's bottom - sneaking suspicion - snug as a bug in a rug - sow wild oats - spare the rod, spoil the child - speak of the devil - spilled the beans - spinning your wheels - spitting image of - spoke with relish - spread like wildfire - spring to life - squeaky wheel gets the grease - stands out like a sore thumb - start from scratch - stick in the mud - still waters run deep - stitch in time - stop and smell the roses - straight as an arrow - straw that broke the camel's back - strong as an ox - stubborn as a mule - stuff that dreams are made of - stuffed shirt - sweating blood - sweating bullets - take a load off - take one for the team - take the bait - take the bull by the horns - take the plunge - takes one to know one - takes two to tango - the more the merrier - the real deal - the real McCoy - the red carpet treatment - the same old story - there is no accounting for taste - thick as a brick - thick as thieves - thin as a rail - think outside of the box - third time's the charm - this day and age - this hurts me worse than it hurts you - this point in time - three sheets to the wind - through thick and thin - throw in the towel - tie one on - tighter than a drum - time and time again - time is of the essence - tip of the iceberg - tired but happy - to coin a phrase - to each his own - to make a long story short - to the best of my knowledge - toe the line - tongue in cheek - too good to be true - too hot to handle - too numerous to mention - touch with a ten foot pole - tough as nails - trial and error - trials and tribulations - tried and true - trip down memory lane - twist of fate - two cents worth - two peas in a pod - ugly as sin - under the counter - under the gun - under the same roof - under the weather - until the cows come home - unvarnished truth - up the creek - uphill battle - upper crust - upset the applecart - vain attempt - vain effort - vanquish the enemy - vested interest - waiting for the other shoe to drop - wakeup call - warm welcome - watch your p's and q's - watch your tongue - watching the clock - water under the bridge - weather the storm - weed them out - week of Sundays - went belly up - wet behind the ears - what goes around comes around - what you see is what you get - when it rains, it pours - when push comes to shove - when the cat's away - when the going gets tough, the tough get going - white as a sheet - whole ball of wax - whole hog - whole nine yards - wild goose chase - will wonders never cease? - wisdom of the ages - wise as an owl - wolf at the door - words fail me - work like a dog - world weary - worst nightmare - worth its weight in gold - wrong side of the bed - yanking your chain - yappy as a dog - years young - you are what you eat - you can run but you can't hide - you only live once - you're the boss - young and foolish - young and vibrantdeleted file mode 100644+0 / −32 text lines
extends: existencemessage: "Try to avoid using '%s'."ignorecase: truelevel: suggestiontokens: - am - are - aren't - be - been - being - he's - here's - here's - how's - i'm - is - isn't - it's - she's - that's - there's - they're - was - wasn't - we're - were - weren't - what's - where's - who's - you'redeleted file mode 100644+0 / −11 text lines
deleted file mode 100644+0 / −183 text lines
extends: existencemessage: "'%s' may be passive voice. Use active voice if you can."ignorecase: truelevel: warningraw: - \b(am|are|were|being|is|been|was|be)\b\s*tokens: - '[\w]+ed' - awoken - beat - become - been - begun - bent - beset - bet - bid - bidden - bitten - bled - blown - born - bought - bound - bred - broadcast - broken - brought - built - burnt - burst - cast - caught - chosen - clung - come - cost - crept - cut - dealt - dived - done - drawn - dreamt - driven - drunk - dug - eaten - fallen - fed - felt - fit - fled - flown - flung - forbidden - foregone - forgiven - forgotten - forsaken - fought - found - frozen - given - gone - gotten - ground - grown - heard - held - hidden - hit - hung - hurt - kept - knelt - knit - known - laid - lain - leapt - learnt - led - left - lent - let - lighted - lost - made - meant - met - misspelt - mistaken - mown - overcome - overdone - overtaken - overthrown - paid - pled - proven - put - quit - read - rid - ridden - risen - run - rung - said - sat - sawn - seen - sent - set - sewn - shaken - shaven - shed - shod - shone - shorn - shot - shown - shrunk - shut - slain - slept - slid - slit - slung - smitten - sold - sought - sown - sped - spent - spilt - spit - split - spoken - spread - sprung - spun - stolen - stood - stridden - striven - struck - strung - stuck - stung - stunk - sung - sunk - swept - swollen - sworn - swum - swung - taken - taught - thought - thrived - thrown - thrust - told - torn - trodden - understood - upheld - upset - wed - wept - withheld - withstood - woken - won - worn - wound - woven - written - wrungdeleted file mode 100644+0 / −27 text lines
Based on [write-good](https://github.com/btford/write-good).> Naive linter for English prose for developers who can't write good and wanna learn to do other stuff good too.```The MIT License (MIT)Copyright (c) 2014 Brian FordPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.```deleted file mode 100644+0 / −5 text lines
deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −221 text lines
extends: existencemessage: "'%s' is too wordy."ignorecase: truelevel: warningtokens: - a number of - abundance - accede to - accelerate - accentuate - accompany - accomplish - accorded - accrue - acquiesce - acquire - additional - adjacent to - adjustment - admissible - advantageous - adversely impact - advise - aforementioned - aggregate - aircraft - all of - all things considered - alleviate - allocate - along the lines of - already existing - alternatively - amazing - ameliorate - anticipate - apparent - appreciable - as a matter of fact - as a means of - as far as I'm concerned - as of yet - as to - as yet - ascertain - assistance - at the present time - at this time - attain - attributable to - authorize - because of the fact that - belated - benefit from - bestow - by means of - by virtue of - by virtue of the fact that - cease - close proximity - commence - comply with - concerning - consequently - consolidate - constitutes - demonstrate - depart - designate - discontinue - due to the fact that - each and every - economical - eliminate - elucidate - employ - endeavor - enumerate - equitable - equivalent - evaluate - evidenced - exclusively - expedite - expend - expiration - facilitate - factual evidence - feasible - finalize - first and foremost - for all intents and purposes - for the most part - for the purpose of - forfeit - formulate - have a tendency to - honest truth - however - if and when - impacted - implement - in a manner of speaking - in a timely manner - in a very real sense - in accordance with - in addition - in all likelihood - in an effort to - in between - in excess of - in lieu of - in light of the fact that - in many cases - in my opinion - in order to - in regard to - in some instances - in terms of - in the case of - in the event that - in the final analysis - in the nature of - in the near future - in the process of - inception - incumbent upon - indicate - indication - initiate - irregardless - is applicable to - is authorized to - is responsible for - it is - it is essential - it seems that - it was - magnitude - maximum - methodology - minimize - minimum - modify - monitor - multiple - necessitate - nevertheless - not certain - not many - not often - not unless - not unlike - notwithstanding - null and void - numerous - objective - obligate - obtain - on the contrary - on the other hand - one particular - optimum - overall - owing to the fact that - participate - particulars - pass away - pertaining to - point in time - portion - possess - preclude - previously - prior to - prioritize - procure - proficiency - provided that - purchase - put simply - readily apparent - refer back - regarding - relocate - remainder - remuneration - requirement - reside - residence - retain - satisfy - shall - should you wish - similar to - solicit - span across - strategize - subsequent - substantial - successfully complete - sufficient - terminate - the month of - the point I am trying to make - therefore - time period - took advantage of - transmit - transpire - type of - until such time as - utilization - utilize - validate - various different - what I mean to say is - whether or not - with respect to - with the exception of - witnesseddeleted file mode 100644+0 / −207 text lines
extends: existencemessage: "'%s' is a weasel word!"ignorecase: truelevel: warningtokens: - absolutely - accidentally - additionally - allegedly - alternatively - angrily - anxiously - approximately - awkwardly - badly - barely - beautifully - blindly - boldly - bravely - brightly - briskly - bristly - bubbly - busily - calmly - carefully - carelessly - cautiously - cheerfully - clearly - closely - coldly - completely - consequently - correctly - courageously - crinkly - cruelly - crumbly - cuddly - currently - daily - daringly - deadly - definitely - deliberately - doubtfully - dumbly - eagerly - early - easily - elegantly - enormously - enthusiastically - equally - especially - eventually - exactly - exceedingly - exclusively - extremely - fairly - faithfully - fatally - fiercely - finally - fondly - few - foolishly - fortunately - frankly - frantically - generously - gently - giggly - gladly - gracefully - greedily - happily - hardly - hastily - healthily - heartily - helpfully - honestly - hourly - hungrily - hurriedly - immediately - impatiently - inadequately - ingeniously - innocently - inquisitively - interestingly - irritably - jiggly - joyously - justly - kindly - largely - lately - lazily - likely - literally - lonely - loosely - loudly - loudly - luckily - madly - many - mentally - mildly - monthly - mortally - mostly - mysteriously - neatly - nervously - nightly - noisily - normally - obediently - occasionally - only - openly - painfully - particularly - patiently - perfectly - politely - poorly - powerfully - presumably - previously - promptly - punctually - quarterly - quickly - quietly - rapidly - rarely - really - recently - recklessly - regularly - remarkably - relatively - reluctantly - repeatedly - rightfully - roughly - rudely - sadly - safely - selfishly - sensibly - seriously - sharply - shortly - shyly - significantly - silently - simply - sleepily - slowly - smartly - smelly - smoothly - softly - solemnly - sparkly - speedily - stealthily - sternly - stupidly - substantially - successfully - suddenly - surprisingly - suspiciously - swiftly - tenderly - tensely - thoughtfully - tightly - timely - truthfully - unexpectedly - unfortunately - usually - very - victoriously - violently - vivaciously - warmly - waverly - weakly - wearily - weekly - wildly - wisely - worldly - wrinkly - yearlydeleted file mode 100644+0 / −4 text lines
+6 / −0 text lines