Skip to content

takinoy/telescope-yadm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Telescope yadm extension

This is an extension for the Telescope plugin which implements a picker for yadm files.

The picker get files tracked by yadm. It can be configured using options.

Usage

Once installed, the extension has to be loaded using standard Telescope's API:

-- Load extension.
require("telescope").load_extension("yadm_files")

An example of the shortcut to open recent files:

-- Map a shortcut to open the picker.
vim.api.nvim_set_keymap("n", "<Leader>gy",
  [[<cmd>lua require('telescope').extensions.yadm.pick()<CR>]],
  {noremap = true, silent = true})

Options

Extension options can be configured in the Telescope's setup:

require("telescope").setup {
  defaults = {
    -- Your regular Telescope's options.
  },
  extensions = {
    yadm = {
      -- This extension's options, see below.
    }
  }
}

The extension provides the following options:

  • ignore_patterns (default {"/tmp/"}).

    The list of file patterns to ignore in the picker. These are the standard Lua patterns. If you're opening some logs or other temporary files, you can configure the ignore patters in order not to clutter the pickers.

  • only_cwd (default false).

    Show only files in the cwd.

About

Telescope extension for yadm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%