Skip to content

pschmitt/telescope-yadm.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

telescope-yadm.nvim

Extension for telescope.nvim that provides:

  • yadm_files which does the same as the builtin git_files, but with YADM, duh!
  • git_or_files: First invokes the builtin git_files. If it fails (you're not currently in a git project dir) it falls back to Telescope's builtin find_files
  • git_or_yadm_files: First invokes the builtin git_files. If it fails (you're not currently in a git project dir) it falls back to yadm_files

Installation

Using packer.nvim:

use {
  "pschmitt/telescope-yadm.nvim",
  requires = "nvim-telescope/telescope.nvim"
}

Setup

⚠️ You need to register this extension with:

require("telescope").load_extension("yadm_files")
require("telescope").load_extension("git_or_files")
require("telescope").load_extension("git_or_yadm_files")

LunarVim users, here's how to load a Telescope extension:

lvim.builtin.telescope.on_config_done = function(tele)
  tele.load_extension("yadm_files")
  tele.load_extension("git_or_files")
  tele.load_extension("git_or_yadm_files")
end

Usage

:Telescope yadm_files
:Telescope git_or_files
:Telescope git_or_yadm_files

Releases

No releases published

Packages

No packages published

Languages