Commit graph

290 commits

Author SHA1 Message Date
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
Oliver Davies e00d868e73 Update dial.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:10:57 +01:00
Oliver Davies 085a54aefc Update gitsigns configuration
- Remove use of `pcall` to simplify requiring the plugin.
- Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 18:10:37 +01:00
Oliver Davies e7bcf62062 Use and format with nixfmt-rfc-style 2024-05-15 19:55:51 +01:00
Oliver Davies b4809f12a2 Configure oil 2024-05-15 19:38:21 +01:00
Oliver Davies e6e8cd5fa6 Revert "Remove oil.nvim, configure netrw"
This reverts commit 94e6c8ab13.
2024-05-15 19:11:01 +01:00
Oliver Davies 83edc8c963 Add buffer completion to SQL files 2024-05-14 13:03:47 +01:00
Oliver Davies 80fc14d063 Configure spelling and a custom dictionary file 2024-05-14 13:00:32 +01:00
Oliver Davies 67529832a7 Update lock file 2024-05-09 18:58:16 +01:00
Oliver Davies e676b97b39 Add nodejs-slim
node is needed to run DAP sessions.
2024-05-09 18:57:18 +01:00
Oliver Davies 880ef033ca Add keymaps 2024-05-09 13:01:10 +01:00
Oliver Davies 77dfbffc55 Add yamlfmt and yamllint 2024-05-09 13:00:52 +01:00
Oliver Davies cc067120f8 Remove vim-sort-motion 2024-05-08 09:49:03 +01:00