Commit graph

63 commits

Author SHA1 Message Date
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
Oliver Davies ac90ae5b08 Only install the Treesitter parsers I use 2024-03-17 16:00:13 +00:00
Oliver Davies 327f81f8ae Add committia.vim
Improves the Git commit buffer.

https://github.com/rhysd/committia.vim
2024-03-14 01:30:21 +00:00
Oliver Davies 3a012c07af Add diffview.nvim
https://github.com/sindrets/diffview.nvim
2024-03-12 22:52:39 +00:00
Oliver Davies e64463259b Add jsonlint and nvim-spectre
https://github.com/nvim-pack/nvim-spectre
2024-03-12 22:52:17 +00:00
Oliver Davies b9fb453db1 Remove nixd and rnix-lsp
These were preventing an upgrade from an insecure version of nix.
2024-03-12 17:07:41 +00:00
Oliver Davies 2640acecc5 Re-add markdown-preview.nvim 2024-03-11 11:03:45 +00:00
Oliver Davies b98191f6a9 Remove grammarly 2024-03-09 20:19:32 +00:00
Oliver Davies 853f74c147 phpcf and phpcs is now php-codesniffer 2024-02-29 00:28:31 +00:00
Oliver Davies 3cfe6444c6 Use alexghergh/nvim-tmux-navigation
Replace `christoomey/vim-tmux-navigator` with
`alexghergh/nvim-tmux-navigation`.

https://github.com/alexghergh/nvim-tmux-navigation
2024-02-27 17:32:24 +00:00
Oliver Davies 4efdebcb0e Add missing eslint_d package
Add `eslint_d` as it's set as a formatter for JavaScript files.
2024-02-26 17:40:47 +00:00
Oliver Davies 3afe1bd12b Tidy neovim configuration
* Remove some unused plugins and packages.
  * e.g. floaterm, projectionist, vim-wiki, vim-easy-align,
    vim-surround, visual-star-search, vim-rhubarb
* Replace none-ls with conform.nvim and nvim-lint.
* Replace lualine.nvim with mini-statusline.
* Add neodev.
* Simplify cmp completion sources.
2024-02-24 22:26:31 +00:00