Commit graph

22 commits

Author SHA1 Message Date
534d9a102b [neovim] Give key bindings a little love; add GUI bindings for neovide
- Clean up the init interface. Move all the init methods into a single
  init_all() call.
- Add two keybindings for <M-j> and <M-k> to move by soft-wrapped lines in
  Normal mode
- Add a few key bindings for the usual shortcuts for cut/copy/paste when in GUI
  mode. In vim, D is the character that represents the Super/Apple key. So,
  <D-x>, <D-c>, and <D-v> now do what you'd expect.
2025-06-03 13:19:51 -07: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
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
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
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
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
30f5bb7d29 [vim] Clean up required scripts in neovim init.lua 2024-08-02 18:31:36 -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
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
92418f9ec9 [nvim] Make colors a proper module and call .init() from init.lua 2024-06-25 10:09:26 -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
e2e47d79fa [vim] Fix up ensureMetadataDirectories function 2023-08-23 16:19:44 -07:00
4a0fa054d8 [nvim] Iterate through the entries in each vim.opt table and create directories that should exist 2023-03-28 10:53:23 -07:00
eeeb516897 [nvim] Fix the merge conflicts (again) in the nvim config files 2023-03-22 14:35:47 -07:00
24229b0711 [nvim] Fix the editor metadata settings, again, for hopefully the last time 2023-03-21 10:32:26 -07:00
19cf305d2b [nvim] Add a new colors Lua module that deals with colors
it provides a single reloadColorscheme function that applies the colorscheme and
a few of my own customizations.
2023-03-20 13:49:32 -07:00
3a3b73a915 [vim] Ensure backup, swap, and undo directories exist so those state files are placed correctly 2023-03-20 10:09:44 -07:00
5ad761678a [vim] Move plugin management to vim-plug and .vim/plugins.vim 2023-03-20 08:42:39 -07:00
833c4c8a6f [vim] Add ensureMetadataDirectoriesExist() and call it
This function creates backup, undo, and swap directories if they do not already exist
2022-11-16 08:58:07 -08:00
8262907b64 [nvim] Convert init.vim to init.lua and copy over a bit of the vimrc config to some lua scripts
This is neat!
2022-10-20 08:18:40 -07:00