Neovim: add spectre
This commit is contained in:
parent
2977882a60
commit
dacb6643e2
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue