Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allcentury/telescope_csearch.nvim
Telescope plugin fuzzy finder that is blazing fast thanks to codesearch
https://github.com/allcentury/telescope_csearch.nvim
codesearch neovim neovim-config neovim-plugin search telescope telescope-plugin
Last synced: 16 days ago
JSON representation
Telescope plugin fuzzy finder that is blazing fast thanks to codesearch
- Host: GitHub
- URL: https://github.com/allcentury/telescope_csearch.nvim
- Owner: allcentury
- License: mit
- Created: 2024-12-10T18:31:10.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-15T15:16:26.000Z (about 1 month ago)
- Last Synced: 2024-12-23T03:47:39.335Z (25 days ago)
- Topics: codesearch, neovim, neovim-config, neovim-plugin, search, telescope, telescope-plugin
- Language: Lua
- Homepage:
- Size: 3.91 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## telescope_csearch
This [Telescope](https://github.com/nvim-telescope/telescope.nvim) plugin uses [codesearch](https://github.com/google/codesearch/tree/master) to search code in your project.
### Installation
Using [packer.nvim](https://github.com/wbthomason/packer.nvim):
```lua
use {
'allcentury/telescope-csearch',
requires = { 'nvim-telescope/telescope.nvim' },
config = function()
require('telescope_csearch').setup({
index_path = '~/.csearchindex'
})
end
}
```Using [lazy](https://github.com/folke/lazy.nvim):
```lua
return {
'allcentury/telescope-csearch',
requires = { 'nvim-telescope/telescope.nvim' },
config = function()
require('telescope_csearch').setup({
index_path = '~/.csearchindex'
})
end,
cond = function()
return vim.fn.executable('csearch')
end
}
```## Usage
```lua
-- search by pressing cs
vim.keymap.set('n', 'cs', function()
require('telescope_csearch').csearch()
end, { desc = 'CSearch grep' })-- search for word under cursor
vim.keymap.set('n', 'csw', function()
require('telescope_csearch').csearch({
default_text = vim.fn.expand('')
})
end, { desc = 'CSearch word under cursor' })
```## License
MIT