Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pschmitt/telescope-yadm.nvim
telescope.nvim extension to list YADM files
https://github.com/pschmitt/telescope-yadm.nvim
dotfiles neovim nvim telescope-extension yadm
Last synced: about 1 month ago
JSON representation
telescope.nvim extension to list YADM files
- Host: GitHub
- URL: https://github.com/pschmitt/telescope-yadm.nvim
- Owner: pschmitt
- License: gpl-3.0
- Created: 2022-05-05T18:13:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-24T15:09:23.000Z (11 months ago)
- Last Synced: 2024-05-17T00:10:56.042Z (6 months ago)
- Topics: dotfiles, neovim, nvim, telescope-extension, yadm
- Language: Lua
- Homepage:
- Size: 20.5 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# telescope-yadm.nvim
Extension for [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)
that provides:- `yadm_files` which does the same as the builtin `git_files`, but
with [YADM](https://yadm.io/), 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](https://github.com/wbthomason/packer.nvim):
```lua
use {
"pschmitt/telescope-yadm.nvim",
requires = "nvim-telescope/telescope.nvim"
}
```# Setup
⚠️ You need to register this extension with:
```lua
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:
```lua
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
```viml
:Telescope yadm_files
:Telescope git_or_files
:Telescope git_or_yadm_files
```