From f3ed869c8ae30be02878faf87991ce21937997b9 Mon Sep 17 00:00:00 2001 From: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Date: Thu, 13 Jul 2023 21:59:15 +0200 Subject: [PATCH] feat(search): Add sad.nvim (#427) --- lua/astrocommunity/search/sad-nvim/README.md | 12 ++++++++++++ lua/astrocommunity/search/sad-nvim/init.lua | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 lua/astrocommunity/search/sad-nvim/README.md create mode 100644 lua/astrocommunity/search/sad-nvim/init.lua diff --git a/lua/astrocommunity/search/sad-nvim/README.md b/lua/astrocommunity/search/sad-nvim/README.md new file mode 100644 index 000000000..ccce9f70a --- /dev/null +++ b/lua/astrocommunity/search/sad-nvim/README.md @@ -0,0 +1,12 @@ +# sad.nvim + +Space Age seD in Neovim. A project-wide find and replace plugin for Neovim. + +Requires: +- [sad](https://github.com/ms-jpq/sad#get-sad-now) +- [fzf](https://github.com/junegunn/fzf) so you can confirm/select the matches to apply your changes +- by default the plugin using [fd](https://github.com/sharkdp/fd) to list all files in the current folder, you can use + `git ls_file` +- a pager tool, e.g. `delta` + +**Repository:** diff --git a/lua/astrocommunity/search/sad-nvim/init.lua b/lua/astrocommunity/search/sad-nvim/init.lua new file mode 100644 index 000000000..de40c98fb --- /dev/null +++ b/lua/astrocommunity/search/sad-nvim/init.lua @@ -0,0 +1,7 @@ +return { + "ray-x/sad.nvim", + dependencies = { "ray-x/guihua.lua", build = "cd lua/fzy && make" }, + opts = {}, + event = "User AstroFile", + cmd = { "Sad" }, +}