From 83a317f5160af76d54f749eb873f0fba75053b37 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 8 Jun 2024 13:00:00 +0100 Subject: [PATCH] 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}.` --- lib/default.nix | 2 +- overlays/vim-plugins.nix | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index d967ba6..698f3ee 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -50,7 +50,7 @@ rec { in [ vimPlugins.tabline-vim - vimPlugins.vim-caser + vimPlugins.vim-abolish vimPlugins.vim-textobj-xmlattr vimPlugins.vim-zoom diff --git a/overlays/vim-plugins.nix b/overlays/vim-plugins.nix index ddc44e4..3da3f96 100644 --- a/overlays/vim-plugins.nix +++ b/overlays/vim-plugins.nix @@ -10,16 +10,6 @@ final: prev: { }; }; - vim-caser = final.vimUtils.buildVimPlugin { - name = "vim-caser"; - src = final.fetchFromGitHub { - owner = "arthurxavierx"; - repo = "vim-caser"; - rev = "6bc9f41d170711c58e0157d882a5fe8c30f34bf6"; - sha256 = "PXAY01O/cHvAdWx3V/pyWFeiV5qJGvLcAKhl5DQc0Ps="; - }; - }; - vim-textobj-xmlattr = final.vimUtils.buildVimPlugin { name = "vim-textobj-xmlattr"; src = final.fetchFromGitHub {