Commit graph

74 commits

Author SHA1 Message Date
Oliver Davies e36ab3efd9 Add vim-textobj-indent 2024-09-15 23:11:22 +01:00
Oliver Davies f2bc6066d3 Add sort.nvim
https://github.com/sQVe/sort.nvim
2024-09-13 22:11:28 +01:00
Oliver Davies f8c09a13e4 Add cmp-calc
Show calculations as a completion suggestion.

https://github.com/hrsh7th/cmp-calc
2024-09-04 18:36:35 +01:00
Oliver Davies 5af45522fb Remove tmux references
These aren't needed as I'm now using Zellij.
2024-09-04 07:50:29 +01:00
Oliver Davies 5b731dd0b8 Remove old plugins from nixpkgs 23.05
I can re-add them later if I want.
2024-09-04 07:47:19 +01:00
Oliver Davies 472c36a437 Refactor adding Vim plugins
Remove the `vimPlugin.` prefix as much as possible.
2024-09-03 23:38:54 +01:00
Oliver Davies b7c347fa10 Refactor treesitter plugins
Remove the `p.` prefix.
2024-09-03 23:31:06 +01:00
Oliver Davies c2dc2c07d0 Add kdl treesitter parser 2024-08-24 02:57:23 +01:00
Oliver Davies 35c7f8acb7 Remove vim-projectionist
I've replaced it with edit_alternate.vim in the previous commit, which
works with `.twig` and `.config.yml` files in Fractal projects as well
as test classes in Drupal, which is all I need alternate files for at
the moment.
2024-08-11 10:47:49 +01:00
Oliver Davies 9a7863e5e0 Add edit_alternate.vim
https://github.com/tjdevries/edit_alternate.vim

This works for switching between classes and tests in Drupal modules,
which is something I was struggling to do with Projectionist.

Different to Projectionist, though, this plugin doesn't create an
alternate file if it doesn't exist, and doesn't prompt to select from
multiple options and returns the first matching one.
2024-08-11 10:47:49 +01:00
Oliver Davies 142a55e82f Update files that are deleted after building 2024-08-09 09:14:44 +01:00
Oliver Davies 212875603b Revert "Update to Neovim 0.10 via nixpkgs-unstable"
This reverts commit 38fc21d38a.
2024-07-08 10:50:02 +01:00
Oliver Davies 38fc21d38a Update to Neovim 0.10 via nixpkgs-unstable 2024-07-06 15:23:28 +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 2453186ee1 Re-add vim-tmux-navigator 2024-06-12 19:42:13 +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 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 e7bcf62062 Use and format with nixfmt-rfc-style 2024-05-15 19:55:51 +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 e676b97b39 Add nodejs-slim
node is needed to run DAP sessions.
2024-05-09 18:57:18 +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
Oliver Davies 8578117a2e Remove telescope-file-browser.nvim 2024-05-08 07:11:03 +01:00
Oliver Davies 2d0024b2b5 Pin rest.nvim to 23.11 due to startup errors 2024-05-08 00:06:50 +01:00
Oliver Davies 94e6c8ab13 Remove oil.nvim, configure netrw 2024-05-03 23:06:46 +01:00
Oliver Davies a823cb2d01 Remove obsidian.nvim 2024-05-02 17:18:52 +01:00
Oliver Davies 3353bbd848 Rename treesj so it's more consistent 2024-05-01 20:35:59 +01:00
Oliver Davies 6bc7c6a5fd Move customVim plugins into an overlay 2024-05-01 20:32:16 +01:00
Oliver Davies 50944ccc71 Add oil.nvim 2024-04-24 21:35:35 +01:00
Oliver Davies 2af1332ad2 Add a treesitter parser for just 2024-04-24 18:13:45 +01:00
Oliver Davies fded826b0a Reapply "Add obsidian.nvim and marksman"
This reverts commit e82db1df25.
2024-04-22 20:30:48 +01:00
Oliver Davies 942e334cb5 Re-add vim-fugitive
This reverts commit 75f3877a13.
2024-04-17 20:14:06 +01:00
Oliver Davies 305bb400b5 Set *.theme files as the PHP filetype
This wasn't working with vim-polyglot enabled, as per
https://github.com/neovim/neovim/issues/23522, so I'm removing at - as
least temporarily.
2024-04-07 01:09:37 +01:00
Oliver Davies 40e05c6f70 Add hadolint 2024-04-04 18:52:03 +01:00
Oliver Davies 779687182c Remove mini.splitjoin
I already have `treesj` which works better for PHP and Nix compared to
the `mini.splitjoin`.
2024-04-02 01:20:37 +01:00
Oliver Davies 339a29be1f Add nixfmt as a formatter 2024-03-31 10:12:31 +01:00
Oliver Davies e82db1df25 Revert "Add obsidian.nvim and marksman"
This reverts commit da206ae6ff.
2024-03-31 10:12:31 +01:00
Oliver Davies da206ae6ff Add obsidian.nvim and marksman 2024-03-29 01:26:56 +00:00
Oliver Davies d49a398b35 Add .tmuxinator.yaml 2024-03-29 01:25:37 +00:00
Oliver Davies e3ddc8cf77 Re-add vimux and use it when running tests 2024-03-26 23:41:08 +00:00
Oliver Davies 298601c4e0 Replace nixd with nil_ls 2024-03-19 14:19:20 +00:00
Oliver Davies 75f3877a13 Remove vim-fugitive 2024-03-18 20:37:06 +00:00
Oliver Davies 1b819937f7 Format with nixfmt 2024-03-18 20:34:42 +00:00
Oliver Davies 69b2d3b710 Re-add nixd
Using the latest nightly version of `nixd` due to a dependency on nix
2.16.2 which is now unsecure.
2024-03-17 20:16:19 +00:00
Oliver Davies 975c7d8c70 Remove Ansible language server 2024-03-17 19:17:11 +00:00
Oliver Davies e273f35aa6 Shorten usages of vimUtils.buildVimPlugin 2024-03-17 17:38:02 +00:00