Skip to content

Telescope plugin fuzzy finder that is blazing fast thanks to codesearch

License

Notifications You must be signed in to change notification settings

allcentury/telescope_csearch.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

telescope_csearch

This Telescope plugin uses codesearch to search code in your project.

Installation

Using packer.nvim:

use {
  'allcentury/telescope-csearch',
  requires = { 'nvim-telescope/telescope.nvim' },
  config = function()
    require('telescope_csearch').setup({
      index_path = '~/.csearchindex'
    })
  end
}

Using lazy:

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

-- search by pressing <leader>cs
vim.keymap.set('n', '<leader>cs', function()
  require('telescope_csearch').csearch()
end, { desc = 'CSearch grep' })

-- search for word under cursor
vim.keymap.set('n', '<leader>csw', function()
  require('telescope_csearch').csearch({
    default_text = vim.fn.expand('<cword>')
  })
end, { desc = 'CSearch word under cursor' })

License

MIT

About

Telescope plugin fuzzy finder that is blazing fast thanks to codesearch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages