-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d78c93a
commit 26d7603
Showing
13 changed files
with
467 additions
and
1 deletion.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @gorillamoe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
categories: | ||
- title: Breaking Changes 💥 | ||
labels: | ||
- breaking-change | ||
- title: Documentation 📚 | ||
labels: | ||
- documentation | ||
- title: Exciting New Features ✨ | ||
labels: | ||
- enhancement | ||
- title: Bug Fixes 🐛 | ||
labels: | ||
- bug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
jobs: | ||
create-release: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up env | ||
run: | | ||
VERSION=${GITHUB_REF_NAME#v} | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Create Release | ||
run: ./scripts/release.sh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
stds.nvim = { | ||
read_globals = { "jit" }, | ||
} | ||
|
||
std = "lua51+nvim" | ||
|
||
read_globals = { | ||
"vim", | ||
} | ||
|
||
globals = { | ||
"vim.g", | ||
"vim.b", | ||
"vim.w", | ||
"vim.o", | ||
"vim.bo", | ||
"vim.wo", | ||
"vim.go", | ||
"vim.env", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
version: | ||
./scripts/set-version.sh $(VERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,58 @@ | ||
<div align="center"> | ||
|
||
![tafuta logo](logo.svg) | ||
|
||
# tafuta.nvim | ||
A tiny 🤏🏾, wrapper around ripgrep, for making search 🔍 blazingly fast ⚡ and easy to use 👌🏾 in your favorite editor 🥰. | ||
|
||
![Lua](https://img.shields.io/badge/Made%20with%20Lua-blueviolet.svg?style=for-the-badge&logo=lua) | ||
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/mistweaverco/tafuta.nvim?style=for-the-badge)](https://github.com/mistweaverco/tafuta.nvim/releases/latest) | ||
|
||
[Install](#install) • [Usage](#usage) | ||
|
||
<p></p> | ||
|
||
A tiny 🤏 wrapper around ripgrep for | ||
making search 🔍 blazingly fast ⚡ and | ||
easy to use 👌 in your favorite editor 🥰. | ||
|
||
Tafuta is swahili for "search". | ||
|
||
It allows you to search for text in your project. | ||
|
||
<p></p> | ||
|
||
</div> | ||
|
||
## Install | ||
|
||
> [!WARNING] | ||
> Requires Neovim 0.10.0+ | ||
Via [lazy.nvim](https://github.com/folke/lazy.nvim): | ||
|
||
### Configuration | ||
|
||
```lua | ||
require('lazy').setup({ | ||
-- blazingly fast ⚡ search 🔍 | ||
{ | ||
'mistweaverco/tafuta.nvim', | ||
cmd = { "Tf" }, | ||
config = function() | ||
-- Setup is required, even if you don't pass any options | ||
require('tafuta').setup({ | ||
-- The user command to run the search e.g. `:Tf <query>` | ||
user_command = "Tf", | ||
-- rg options, a lua table of options to pass to rg | ||
rg_options = nil, | ||
}) | ||
end, | ||
}, | ||
}) | ||
``` | ||
|
||
## Usage | ||
|
||
``` | ||
:Tf <search-term> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
local M = {} | ||
|
||
M.defaults = { | ||
-- The user command to run the search e.g. `:Tf <query>` | ||
user_command = "Tf", | ||
} | ||
|
||
M.options = {} | ||
|
||
M.setup = function(config) | ||
M.options = vim.tbl_deep_extend("force", M.defaults, config or {}) | ||
end | ||
|
||
M.get = function() | ||
return M.options | ||
end | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local M = {} | ||
|
||
M.VERSION = "1.0.0" | ||
|
||
return M |
Oops, something went wrong.