- hypergrep binary in PATH
- Neovim >= 0.7
- CPU with AVX2 support (for optimal SIMD performance)
# Download from official repository
curl -L https://github.com/p-ranav/hypergrep/releases/download/v0.1.1/hg_0.1.1.zip -o hypergrep.zip
unzip hypergrep.zip
sudo mv hg /usr/local/bin/hgrep
chmod +x /usr/local/bin/hgrep
# Verify installation
hgrep --version-- lua/plugins/supersonic.lua
return {
"qasimsk20/supersonic.nvim",
config = function()
require("supersonic").setup({
auto_install = true -- Enable automatic hypergrep installation
})
end,
}use 'qasimsk20/supersonic.nvim'
require('supersonic').setup({
auto_install = true
})After installation, the plugin automatically replaces Neovim's grep with hypergrep:
:grep "pattern" " Uses hypergrep
:lgrep "pattern" " Uses hypergrep
:vimgrep "pattern" " Uses hypergrep
<cword> search " Uses hypergrepWorks with LazyVim's leader / search functionality.
:SupersonicInstallCheck " Verify hypergrep is working
:SupersonicVersion " Show hypergrep version
:SupersonicAutoInstall " Automatically install latest hypergrep
:SupersonicUninstall " Remove installed hypergrep
:SupersonicHealth " Run health checksrequire('supersonic').setup({
binary_path = 'hgrep', -- Path to hypergrep binary
install_path = '~/.local/bin', -- Where to install hypergrep if auto-installing
auto_install = false, -- Automatically download and install hypergrep
grep_flags = '--line-number --column --hidden', -- Additional flags for hypergrep
version = 'latest' -- Version of hypergrep to install ('latest' or specific vX.Y.Z)
})Hypergrep provides improved search performance compared to traditional tools:
| Search Type | ripgrep | hypergrep |
|---|---|---|
| Simple literal | 1.5s | 0.7s |
| Complex regex | 6.9s | 0.8s |
| Git repos | 0.15s | 0.14s |
| Large files | Limited | Optimized |
Based on official hypergrep benchmarks
- Single Responsibility - Plugin only handles Neovim integration
- Clean Dependencies - Depends on official hypergrep tool
- No Duplication - No C++ code in plugin repository
- Standard Patterns - Follows common plugin practices
supersonic.nvim/
βββ lua/supersonic/
β βββ init.lua # Core plugin logic
βββ README.md # Documentation
βββ lazyvim.lua # LazyVim integration
βββ LICENSE
hypergrep/ # Official tool repository βββ src/ # C++ source (p-ranav/hypergrep) βββ CMakeLists.txt # Build system βββ releases/ # Pre-built binaries
## π Troubleshooting
### "hypergrep not found"
```bash
# Install from official repository
curl -L https://github.com/p-ranav/hypergrep/releases/download/v0.1.1/hg_0.1.1.zip -o hypergrep.zip
unzip hypergrep.zip
sudo mv hg /usr/local/bin/hgrep
chmod +x /usr/local/bin/hgrep
:SupersonicInstallCheck # Check if hypergrep is available
:SupersonicVersion # Show hypergrep version
:SupersonicAutoInstall # Install hypergrep automatically
:hgrep --version # Verify binary worksHypergrep uses Intel Hyperscan SIMD acceleration. Make sure your CPU supports AVX2. Run :SupersonicHealth to check compatibility.
- hypergrep - Official C++ tool (222β)
- ripgrep - Alternative fast grep
- telescope.nvim - Fuzzy finder
MIT License - see LICENSE file for details.
- p-ranav - Creator of hypergrep
- Intel Hyperscan - SIMD regex acceleration
- Neovim Community - For the best text editor