Skip to content

rajitkhanna/greptile.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💥 Semantic Search

greptile.nvim is a lua plugin for Neovim >= 0.8.0 to search for files in natural language.

demo.mp4

✨ Features

  • Search for any file or set of files is natural language with the Greptile API
  • Jump directly into the file
  • [wip] Navigate directly to the line that's relevant to your query
  • [wip] Chat with multiple codebases at once

⚡️ Requirements

This plugin also assumes GREPTILE_API_KEY and GITHUB_TOKEN are environment variables. Please see the Greptile Docs for more information.

After creating these keys, you can add them to your environment in the following way:

export GREPTILE_API_KEY=XXX
export GITHUB_TOKEN=XXX

📦 Installation

Install the plugin with your preferred package manager:

return {
  "rajitkhanna/greptile.nvim",
  dependencies = {
    "nvim-lua/plenary.nvim",
    "nvim-telescope/telescope.nvim",
  },
  config = function()
    local keymap = vim.keymap

    keymap.set("n", "<leader>ss", "<cmd>GreptileSearch<cr>", { desc = "Semantic search files" })
  end,
}

🚀 Usage

Semantic Search queries the repo using your query:

:GreptileSearch

image.png

About

💥 Semantic search for Neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published