Neovim: add spectre

This commit is contained in:
Paul-Henri Froidmont 2024-07-14 07:14:42 +02:00
parent 2977882a60
commit dacb6643e2
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE

View file

@ -178,7 +178,7 @@ in {
options.desc = "Search with rg"; options.desc = "Search with rg";
} }
{ {
key = "<leader>sr"; key = "<leader>sR";
action = "<CMD>Telescope resume<CR>"; action = "<CMD>Telescope resume<CR>";
options.desc = "[S]earch [R]esume"; options.desc = "[S]earch [R]esume";
} }
@ -758,6 +758,16 @@ in {
end end
''; '';
} }
{
pkg = pkgs.unstable.vimPlugins.nvim-spectre;
cmd = "Spectre";
opts = { open_cmd = "noswapfile vnew"; };
keys.__raw = /*lua*/ ''
{
{ "<leader>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 # 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 # https://github.com/nvim-orgmode/orgmode/blob/95fb795a422f0455e03d13a3f83525f1d00793ad/lua/orgmode/utils/treesitter/install.lua#L9