diff --git a/modules/editor/vim.nix b/modules/editor/vim.nix index 10c1847..d33c3d7 100644 --- a/modules/editor/vim.nix +++ b/modules/editor/vim.nix @@ -178,7 +178,7 @@ in { options.desc = "Search with rg"; } { - key = "sr"; + key = "sR"; action = "Telescope resume"; options.desc = "[S]earch [R]esume"; } @@ -758,6 +758,16 @@ in { end ''; } + { + pkg = pkgs.unstable.vimPlugins.nvim-spectre; + cmd = "Spectre"; + opts = { open_cmd = "noswapfile vnew"; }; + keys.__raw = /*lua*/ '' + { + { "sr", function() require("spectre").open() end, desc = "Replace in Files (Spectre)" }, + } + ''; + } # Disabled for now as it tries to write org grammar to its own directory in the nix store # https://github.com/nvim-orgmode/orgmode/blob/95fb795a422f0455e03d13a3f83525f1d00793ad/lua/orgmode/utils/treesitter/install.lua#L9