Commit graph

352 commits

Author SHA1 Message Date
Oliver Davies 38fc21d38a Update to Neovim 0.10 via nixpkgs-unstable 2024-07-06 15:23:28 +01:00
Oliver Davies 63f90b87a8 Combine custom keymaps 2024-07-06 15:23:28 +01:00
Oliver Davies a8f99675da Use flake-parts 2024-07-06 15:23:28 +01:00
Oliver Davies eab6448f28 Remove opdavies.vim 2024-07-06 12:08:35 +01:00
Oliver Davies eb677985cb Replace justfile with run 2024-07-06 12:02:25 +01:00
Oliver Davies 77aa4db95f harpoon: simplify keybindings 2024-06-29 15:14:02 +01:00
Oliver Davies 6713a0d01f Re-enable global statusline with mini.statusline
From the README file:

```lua
-- Whether to set Vim's settings for statusline (make it always shown
-- with 'laststatus' set to 2).
-- To use global statusline, set this to `false` and 'laststatus' to 3.
set_vim_settings = true,
```
2024-06-29 15:14:02 +01:00
Oliver Davies e4e9727819 Add vim-autoread
> Automatically causes vim to reload files which have been written on
disk but not modified in the buffer since the last write from vim. This
enables a file open in vim to be edited using another application and
saved. Upon returning to vim, as long as you haven't modified the file
since the last change, the file will be automatically updated to reflect
the changes made on disk, as though you had pressed :e manually.

https://github.com/djoshea/vim-autoread
2024-06-21 02:35:00 +01:00
Oliver Davies 0e82afca1b Re-add mini.statusline 2024-06-21 02:27:29 +01:00
Oliver Davies ad707df990 Update spellfile 2024-06-19 06:45:44 +01:00
Oliver Davies fb1bbd2868 Open ":G status" with Fugitive in its own buffer
Not in a split.
2024-06-19 06:45:19 +01:00
Oliver Davies f524294339 Remove .tmuxinator.yaml 2024-06-19 06:41:32 +01:00
Oliver Davies f267b6d226 Skip confirmation for simple edits 2024-06-16 21:36:32 +01:00
Oliver Davies 2453186ee1 Re-add vim-tmux-navigator 2024-06-12 19:42:13 +01:00
Oliver Davies 60b84f242e Switch from NixOS unstable to 24.05 by default 2024-06-11 07:40:51 +01:00
Oliver Davies effba3164f Add words 2024-06-10 20:21:48 +01:00
Oliver Davies b00cef78af Enable formatting on save
I've usually been against auto-formatting on save and instead preferred
to trigger it manually using its own keybinding.

I'm enabling it for now to see how I feel about it and I'll either keep
or revert it.
2024-06-10 10:02:04 +01:00
Oliver Davies e8531ba993 Remove alejandra 2024-06-10 10:02:04 +01:00
Oliver Davies 8f9401594b Re-add vim-projectionist
Whilst I wasn't able to get it to work for all my use cases previously,
it is useful for creating alternative files in Fractal, such as
switching between the `*.config.yml` and `*.twig` files for a component.

Other use cases, such as creating alternative files for classes and
tests in PHP and Drupal projects, I can look at again now the plugin is
installed.
2024-06-10 09:32:17 +01:00
Oliver Davies fadcf5945c Remove unused binding 2024-06-08 19:54:25 +01:00
Oliver Davies 83a317f516 Replace vim-caser with vim-abolish
See https://github.com/tpope/vim-abolish.

From the docs:

> Want to turn `fooBar` into `foo_bar`? Press `crs` (coerce to
snake_case). MixedCase (`crm`), camelCase (`crc`), UPPER_CASE (`cru`),
dash-case (`cr-`), and dot.case (`cr.`) are all just 3 keystrokes away.

The substitution functionality looks interesting, too:

> From a conceptual level, one way to think about how this substitution
works is to imagine that in the braces you are declaring the
requirements for turning that word from singular to plural. In the
facility example, the same base letters in both the singular and plural
form of the word are `facilit` To turn "facility" to a plural word you
must change the `y` to `ies` so you specify `{y,ies}` in the braces.

> To convert the word "building" from singular to plural, again look at
the common letters between the singular and plural forms: `building.` In
this case you do not need to remove any letter from building to turn it
into plural form and you need to add an `s` so the braces should be
`{,s}.`
2024-06-08 19:12:39 +01:00
Oliver Davies c53357c8d0 Update todos 2024-06-07 23:55:22 +01:00
Oliver Davies 421edb67b2 Add keymaps for navigating between splits 2024-06-01 14:48:32 +01:00
Oliver Davies 6336b36659 Refactor LSP server configuration 2024-06-01 14:48:25 +01:00
Oliver Davies 4e54650790 Run just update 2024-05-31 18:34:33 +01:00
Oliver Davies 5a79b8e412 Update spellings 2024-05-31 18:34:01 +01:00
Oliver Davies c54f46c8f3 Remove oil filetype configuration 2024-05-31 18:33:39 +01:00
Oliver Davies 63906d9445 Include buffer completion for rst files
This is useful when writing presentation slides.
2024-05-23 16:46:11 +01:00
Oliver Davies ad39a8c487 Remove run as I also have a justfile 2024-05-22 14:26:05 +01:00
Oliver Davies 0aacffa91f Remove vim-heritage
I can do this now using `oil.nvim`.
2024-05-22 14:26:05 +01:00
Oliver Davies 7d73b51229 Remove nvim-tmux-navigation 2024-05-22 14:26:05 +01:00
Oliver Davies f724019e43 Move after/plugin to plugin 2024-05-22 12:36:52 +01:00
Oliver Davies 9b6f7310f2 Make .install files use the php filetype. 2024-05-22 08:13:05 +01:00
Oliver Davies ae888adbe0 Automatically wrap lines in markdown files 2024-05-22 07:49:33 +01:00
Oliver Davies 2695babfb0 Update spellings 2024-05-21 23:50:47 +01:00
Oliver Davies 9d29f1f3d8 Add todo 2024-05-20 18:07:43 +01:00
Oliver Davies ddb747760b Run nix flake update 2024-05-20 18:06:30 +01:00
Oliver Davies 50bac18457 Fix Tailwind CSS completions
Whether the file extension is `.twig` or `.html.twig`, the filetype in
Neovim is `twig`, so this commit simplifies and fixes the configuration
for Tailwind CSS so that it works in files it previously wasn't
completing in.
2024-05-20 18:04:11 +01:00
Oliver Davies 2e6e3ce153 Use vim-dadbod-completion for the mysql
...filetype
2024-05-20 17:49:39 +01:00
Oliver Davies 0ce34a8313 Move luasnip configuration into completion 2024-05-20 17:48:29 +01:00
Oliver Davies 9b918d098a Update spellings 2024-05-17 21:58:54 +01:00
Oliver Davies 7b8ac2345e Update keymaps
Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 19:07:23 +01:00
Oliver Davies 73965bd501 Update luasnip configuration
Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 18:28:30 +01:00
Oliver Davies cdd3ff23b7 Update rest-nvim configuration
- Remove use of `pcall` to simplify requiring the plugin.
- Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 18:28:30 +01:00
Oliver Davies ab29decb3e Update undotree configuration
Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 18:28:30 +01:00
Oliver Davies c40a03a456 Update Harpoon configuration
Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 18:28:30 +01:00
Oliver Davies f5931909a1 Update treesj configuration
Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 18:11:26 +01:00
Oliver Davies 3f12734cd3 Update treesitter configuration
Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 18:11:22 +01:00
Oliver Davies 5205dcba06 Update phpactor configuration
Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 18:11:15 +01:00
Oliver Davies 9b4624b946 Update refactoring.nvim configuration
- Remove use of `pcall` to simplify requiring the plugin.
- Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 18:11:05 +01:00