Skip to content

Neovim plugin to search for code on Github.

Notifications You must be signed in to change notification settings

benjaminchristie/csgithub.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

A simple plugin to simplify searching for code on Github Code Search.

In normal mode, searches for the word under the cursor.

In visual mode, searches for the selected text.

Demo

2023-03-20.18-09-00.mp4

Install

-- Install with Lazy
{
  "thenbe/csgithub.nvim",
  keys = {
    {
      "<leader>feg",
      function()
        local csgithub = require("csgithub")

        local url = csgithub.search({
          includeFilename = false,
          includeExtension = true,
          betaSearch = true, -- set to false if you haven't opted in to GitHub Code Search (beta)
        })

        csgithub.open(url)
      end,
      mode = { "n", "v" },
      desc = "Search Github",
    },
  },
}

About

Neovim plugin to search for code on Github.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%