Commit graph

751 commits

Author SHA1 Message Date
f13bb11642 Add generate-motd script 2024-09-19 13:48:49 -07:00
093f1a2099 [vim] Remove the tailwind and typescript language server configs
I don't use these.
2024-09-19 13:45:59 -07:00
383fd5ceb9 [vim] Fix broken color scheme
I learned once again that true color schemes don't work in macOS's Terminal.app.
I also learned that the default color scheme in neovim is very plain and doesn't
provide a lot of variation for treesitter syntax elements. So, choose a different
built-in color scheme as the default.

I also learned about the ColorScheme autocmd event, which is fired after a color
scheme is applied. Convert the (janky) reloadColorscheme function to a set of
autocommands that trigger based on the color scheme name.

Along the way, add some explicit configuration for treesitter: enable highlighting,
indentation, and make sure some of my common languages have plugins installed.
Also link the "objcpp" filetype to both "objc" and "cpp" treesitter plugins.

Lastly, make some updates to the git gutter color configuration. Create some
autocommands that are applied after the plugin is loaded. For the gutter, use
color 233 from the 256 color palette, which is a very dark gray.
2024-09-19 13:45:12 -07:00
7d26910371 [ansible] Add a barebones Makefile to set up a local Ansible environment 2024-08-21 16:05:57 -07:00
63dde5c58a [ssh] Add vim modeline to SSH config fragment for personal hosts 2024-08-20 11:19:23 -07:00
13ecb89002 [ssh] Barebones config file that sources fragments from config.d 2024-08-20 11:17:55 -07:00
f6a8f30324 [ssh] Add configuration for personal hosts 2024-08-20 11:05:08 -07:00
6d5f5b3d4b [vim] Comment out the recently_used comparator
This comparator has a bug in it that was causing a syntax error after updating
neovim. Temporarily commenting this out until that bug is fixed.
2024-08-03 09:17:03 -07:00
4cc4f4119e [vim] Add some Lua snippets to support Playdate development 2024-08-03 09:14:45 -07:00
7eed873e02 [vim] Detect Hugo HTML templates when there's a layouts component in the path 2024-08-03 09:13:53 -07:00
a0baeac863 [vim] Update API call that toggles visibility of inlay hints
This API is preferred as of some recent version of neovim.
2024-08-03 09:12:48 -07:00
a4883068de [vim] Clean up the gitTopLevelDirectory() method
Mostly change double quotes to single quotes. Add a nil check.
2024-08-02 18:31:38 -07:00
4b566050af [zsh] Embed connect_ssh_agent in a function 2024-08-02 18:31:38 -07:00
fd56b6b7b6 [pw] Remove this script
It doesn't work right on macOS and I never use it anyway.
2024-08-02 18:31:38 -07:00
5a4b05f72c [vim] Two space indents for CSS files 2024-08-02 18:31:38 -07:00
46249b979a [vim] Add some Clippy stuff to the checkOnSave block for rust-analyzer 2024-08-02 18:31:38 -07:00
acaf6425d5 [vim] Add the dracula colorscheme module
Modify the colors init script to handle it.
2024-08-02 18:31:38 -07:00
9810fa799e [vim] Some super quick 'n dirty GUI config for neovim
Change some defaults to make neovide a little nicer.
2024-08-02 18:31:38 -07:00
3110e2ff76 [vim] Remove the autocmd group from the Zsh autocommands in its ftdetect script
Apparently autocmds in ftdetect scripts are automatically grouped, so they don't
need an explicit group.
2024-08-02 18:31:38 -07:00
2c0a0ab332 [git] Set diff.algorithm to histogram
I heard somewhere that this algorithm does a slightly better job
showing diffs. Giving it a try.
2024-08-02 18:31:38 -07:00
05606d745f [zsh] Only print tmux sessions for LOGIN shells
While playing around with neovide, I learned that processes can reasonably
expect non-login shells to print nothing except commands to execute. This change
modifies zshrc to only print tmux sessions (something I only care about when I
start a shell myself) in LOGIN shells.
2024-08-02 18:31:38 -07:00
30f5bb7d29 [vim] Clean up required scripts in neovim init.lua 2024-08-02 18:31:36 -07:00
5be59f3045 [vim] Make sure signcolumn=yes after attaching an LSP 2024-08-02 18:31:20 -07:00
49fe168cc9 [vim] Make sure the gutter is always visible after loading gitgutter 2024-08-02 18:31:20 -07:00
8ab6b1ea99 [vim] Handle a nil result from io.popen when looking up a Git repo 2024-08-02 18:31:20 -07:00
0accf738ed [vim] Add a DiagnosticFloat autocommand that shows the diagnostic window on CursorHold
Set the hold time to 300 ms.
2024-08-02 18:31:20 -07:00
4a35b3a79d [vim] Add a diagnostics init module to customize diagnostic message floats 2024-08-02 18:31:19 -07:00
95081a31a3 [vim] Redo the keys lua module
Return a table from the module so that other modules that require it can access its functions in a namespaced way.
2024-08-02 18:30:52 -07:00
5e5c8f83c8 [vim] Customize gitgutter colors a little bit 2024-08-02 18:29:43 -07:00
5631eb2c88 [vim] Add rust-analyzer LSP 2024-08-02 18:29:43 -07:00
a6a4aa0d90 [vim] Disable lowercase-global warning for Lua LSP 2024-08-02 18:29:43 -07:00
929f56ef6f [vim] Use syntax fold method for rust code 2024-08-02 18:29:43 -07:00
e17117bef4 [vim] Start with all folds open (foldlevel=99) 2024-08-02 18:29:43 -07:00
ba04ffe644 [zsh] Rename darwin-icloud-drive-path to remove underscores 2024-06-25 10:09:52 -07:00
92418f9ec9 [nvim] Make colors a proper module and call .init() from init.lua 2024-06-25 10:09:26 -07:00
aeaeca56a3 [tmux] Copy SSH_AUTH_SOCK into the tmux environment 2024-04-11 14:26:51 -07:00
e5755da377 Add the favicon_for script
It fetches a favicon for a given URL.
2024-03-08 11:03:20 -08:00
ae8955f99e [zsh] Move the history number later in the prompt and add a numero sign
Show non-zero exit status after the history number as a red exclamation mark.

```
eryn in ~/.dotfiles on .dotfiles(main) №36407 at 10:06:48
%
```
2024-03-08 10:07:04 -08:00
d92641ae85 [zsh] Put the history number at the beginning of the top line of the prompt 2024-03-07 10:47:36 -08:00
75d455aa90 Ignore the Python directory in the setup script and install eryntools with pip 2024-03-05 11:09:24 -08:00
661e5516e7 Add a mechanism for building a cache of "system parameters"
- Add a system_parameters module to eryntools that implements some basic types and can write a cache to a file.
- Add a system-parameters Python script that builds the cache.
- Add init_system_parameters to zsh that exports an environment variable that points to the parameters file
- Add an eryn.system-parameters.plist LaunchAgent file for running the script at regular intervals
2024-03-05 11:08:53 -08:00
05b5fef583 [eryntools] Make eryntools a full-fledged package 2024-03-05 11:08:53 -08:00
7f2ab12b1e [eryntools] Add a dotfiles package to eryntools
Implement a utility for finding the dotfiles repo. It assumes ~/.dotfiles unless an override is given.
2024-03-05 11:08:53 -08:00
f64df23eda [eryntools] A new Python module full of useful utilities
Add a scripting module that implements absolute_script_path().
2024-03-05 11:08:53 -08:00
ddf3de5a80 [zsh] Implement a homebrew-prefix function and use it when setting up fpath
# Conflicts:
#	zshrc
2024-03-05 11:08:37 -08:00
a2bf66480c [zsh] Add the history number to RPROMPT 2024-03-05 11:07:49 -08:00
4bf1217b82 [vim] Add vim-fugitive and vim-gitgutter plugins 2024-03-05 11:07:49 -08:00
f9ddfc336e [zsh] Add an alias for v=vi 2024-01-25 13:36:32 -08:00
2530d398d4 Lorem Ipsum generator script 2024-01-25 13:36:32 -08:00
b65bca7817 [git] Set the defaultBranch name to 'main' 2024-01-07 07:43:41 -08:00