Commit graph

70 commits

Author SHA1 Message Date
be6b93cdde [nvim] Set shiftwidth and softtabstop to 2 spaces for HTML files
Never thought I'd be *that* person, but here we are.
2025-01-31 13:33:32 -08:00
728cf81a7b [tmux] Move config to XDG_CONFIG_HOME 2025-01-31 13:31:27 -08:00
2f897bb808 [nvim] Move repeated use of vim.fn.stdpath("state") to a local 2025-01-31 13:31:16 -08:00
e0d3364d9d [nvim] Add some helpful comments to configuration.lua 2025-01-31 13:31:16 -08:00
e015132f15 [nvim] Move the textwidth back to 80 characters
I just prefer this, turns out.
2025-01-31 13:31:16 -08:00
f8c04599c5 [nvim] Treat files with a .make extension as Makefiles 2024-12-05 11:53:34 -08:00
440efbf8fc [nvim] Install telescope
Add these bindings:
- find_files to ,ff
- live_grep to ,fg
- buffers to ,fb
- help_tags to ,fh
2024-11-09 08:34:10 -08:00
b233d52b6d [nvim] Factor out the map variable in keys.lua 2024-11-09 08:33:55 -08:00
202dfdb886 [nvim] Call addGitTopLevelDirectoryToRuntimePath after sourcing common vimrc 2024-10-09 09:50:05 -07:00
0a3dd9451a [nvim] Remove unused _addPathToRuntimePath function 2024-10-09 09:49:40 -07:00
3dd367982a [nvim] Update UltiSnips script snippet for Python 2024-09-27 11:37:33 -07:00
e5505a7a69 [nvim] Add a gocsstmpl template
This is based on gotexttmpl and css highlighting.
2024-09-26 15:42:36 -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
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
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
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
92418f9ec9 [nvim] Make colors a proper module and call .init() from init.lua 2024-06-25 10:09:26 -07:00
74e66401f8 [neovim] Remove some stuff from Python config 2023-10-12 10:45:55 -07:00
a4e272bd6b [neovim] Port snipmate snippets for Python over to Ultisnips 2023-09-10 15:47:32 -07:00
e779607c5f [neovim] Add .vim in a top level of a git repo to runtimepath if it exists 2023-09-10 15:40:52 -07:00
d7e2a53b42 [neovim] Set sw and sts to 2 for Go templates 2023-09-10 15:39:42 -07:00
b381ff362d [neovim] Set up all the LSP key bindings 2023-09-10 15:37:41 -07:00
47a622250f [nvim,zsh] Set up pyright LSP for Python development 2023-09-06 10:19:21 -07:00
64ae7ed11f [nvim] Set relativenumber 2023-09-06 10:19:21 -07:00
cd98e5d1d6 [vim] Add a group to the ZSH path auto commands 2023-08-26 07:59:43 -07:00
556d125741 [vim] Add treesitter plugin
Add after config script
2023-08-25 08:00:56 -07:00
eb270c30bf [vim] Add eslint and html LSP configs 2023-08-25 08:00:31 -07:00
00d69312b2 [vim] Add LSP support for Lua, JS, CSS, and HTML 2023-08-23 16:20:15 -07:00
e2e47d79fa [vim] Fix up ensureMetadataDirectories function 2023-08-23 16:19:44 -07:00
efeee59635 [neovim] Fix colors.lua 2023-07-11 16:09:21 -07:00