feat: add sad CLI and nvim plugin to find and replace easily

This commit is contained in:
Stefan Imhoff
2022-10-01 18:47:27 +02:00
parent 18f342e614
commit a7a262222c
3 changed files with 19 additions and 1 deletions

14
nvim/after/plugin/sad.lua Normal file
View File

@@ -0,0 +1,14 @@
-- sad.nvim https://github.com/ray-x/sad.nvim
local status_ok, sad = pcall(require, "sad")
if not status_ok then
return
end
sad.setup({
diff = "delta", -- you can use `diff`, `diff-so-fancy`
ls_file = "fd", -- also git ls_file
exact = false, -- exact match
vsplit = true, -- split sad window the screen vertically, when set to number
height_ratio = 0.6, -- height ratio of sad window when split horizontally
width_ratio = 0.6, -- height ratio of sad window when split vertically
})

View File

@@ -130,6 +130,8 @@ return packer.startup(function(use)
use("folke/zen-mode.nvim") -- Zen Mode (2)
use("tpope/vim-eunuch") -- UNIX Shell commands
use("folke/twilight.nvim") -- Dim inactive code
use("ray-x/guihua.lua") -- Lua GUI lib
use("ray-x/sad.nvim") -- Find & Replace
-- Editing Files
use("windwp/nvim-autopairs") -- Autopairs, integrates with both cmp and treesitter
@@ -174,7 +176,8 @@ return packer.startup(function(use)
-- TMUX
use("christoomey/vim-tmux-navigator")
use("preservim/vimux")
use("tyewang/vimux-jest-test")
use("tyewang/vimux-jest-test") -- JavaScript tests
use("jtdowney/vimux-cargo") -- Rust tests
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins

View File

@@ -80,6 +80,7 @@ brew install m-cli # Swiss Army Knife for macOS
brew install mas # Mac App Store command-line interface
brew install memcached # High performance, distributed memory object caching system
brew install mongodb # High-performance, schema-free, document-oriented database
brew install ms-jpq/sad/sad # Search and replace | Space Age seD
brew install multimarkdown # Turn marked-up plain text into well-formatted documents
brew install mysql # Open source relational database management system
brew install ncdu # NCurses Disk Usage