Commit graph

31 commits

Author SHA1 Message Date
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 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 8de23561ec Revert "Remove unused keymaps"
This reverts commit c538a3bfa3.
2024-09-03 18:43:46 +01:00
Oliver Davies c538a3bfa3 Remove unused keymaps 2024-09-03 18:41:03 +01:00
Oliver Davies 2f76ac4d68 Add FormatDisable and FormatEnable commands 2024-08-26 01:10:56 +01:00
Oliver Davies c5763b912e Allow for disabling auto-formatting
Allow for disabling auto-formatting with a global or buffer-local
variable, based on
62eba813b7/doc/recipes.md (autoformat-with-extra-features).

In the future, it would be interesting to do this based on the presence
of a file in the repository, such as `.do-not-auto-format`.
2024-08-26 00:47:57 +01:00
Oliver Davies d12aba9bce vim-test: use the neovim_sticky strategy 2024-08-11 16:19:10 +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 641e8bae4e Remove cmdline completion
Let's see if this fixes some intermittent issues when trying to tab
complete in command mode.
2024-08-10 02:26:53 +01:00
Oliver Davies 5221d941d0 Add Sculpin talk snippets 2024-08-08 21:51:35 +01:00
Oliver Davies 733f59570e Update Telescope mappings 2024-07-20 12:53:55 +01:00
Oliver Davies 070b686d48 Add keymap for lsp_document_symbols 2024-07-17 19:56:12 +01:00
Oliver Davies 69fbc9f97f telescope: search all files
Even those in `.gitignore`.
2024-07-12 14:27:35 +01:00
Oliver Davies 9f80f12f48 Add keymaps for showing buffers and keymaps with
...Telescope
2024-07-10 02:01:09 +01:00
Oliver Davies 02dd935511 Fix paths 2024-07-10 02:01:00 +01:00
Oliver Davies c0d156f728 Use the scss filetype for .pcss files
While `.pcss` files contain PostCSS code, the `scss` filetype gives
better syntax highlighting than the standard `css` one.
2024-07-09 18:36:47 +01:00
Oliver Davies 690e61ee5e Refactor to use format_on_save instead of a
...custom autocmd
2024-07-08 16:37:49 +01:00
Oliver Davies 79afe5b876 Don't use the LSP as a fallback when formatting 2024-07-08 16:35:33 +01:00
Oliver Davies d16cfae1b1 Refactor LSP and Telescope configuration 2024-07-06 15:23:28 +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 0e82afca1b Re-add mini.statusline 2024-06-21 02:27:29 +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 f267b6d226 Skip confirmation for simple edits 2024-06-16 21:36:32 +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 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