nvim: add Telescope picker for files from installed plugins
This commit is contained in:
parent
b620c0a997
commit
1c3a294d0e
1 changed files with 4 additions and 1 deletions
|
@ -23,6 +23,9 @@ local pickers = setmetatable({
|
||||||
colorscheme = builtin("colorscheme", { enable_preview = true }),
|
colorscheme = builtin("colorscheme", { enable_preview = true }),
|
||||||
diagnostics = builtin("diagnostics", { bufnr = 0 }),
|
diagnostics = builtin("diagnostics", { bufnr = 0 }),
|
||||||
dotfiles = builtin("find_files", { cwd = "~/.dotfiles", hidden = true }),
|
dotfiles = builtin("find_files", { cwd = "~/.dotfiles", hidden = true }),
|
||||||
|
plugins = builtin("find_files", {
|
||||||
|
cwd = vim.fn.stdpath("data") .. "/lazy",
|
||||||
|
}),
|
||||||
selection = function(title)
|
selection = function(title)
|
||||||
return function()
|
return function()
|
||||||
local text = require("fschauen.util").get_selected_text()
|
local text = require("fschauen.util").get_selected_text()
|
||||||
|
@ -81,7 +84,7 @@ local keys = {
|
||||||
{ "m", pickers.all_man_pages " Man pages" , desc = "[m]an pages" },
|
{ "m", pickers.all_man_pages " Man pages" , desc = "[m]an pages" },
|
||||||
--"n" used in vim-notify
|
--"n" used in vim-notify
|
||||||
{ "o", pickers.vim_options " Vim options" , desc = "[o]ptions" },
|
{ "o", pickers.vim_options " Vim options" , desc = "[o]ptions" },
|
||||||
--"p"
|
{ "p", pickers.plugins "", desc = "[p]lugins"},
|
||||||
{ "q", pickers.quickfix " Quickfix" , desc = "[q]uickfix" },
|
{ "q", pickers.quickfix " Quickfix" , desc = "[q]uickfix" },
|
||||||
{ "r", pickers.lsp_references " References" , desc = "[r]eferences" },
|
{ "r", pickers.lsp_references " References" , desc = "[r]eferences" },
|
||||||
{ "R", pickers.registers " Registers" , desc = "[R]registers" },
|
{ "R", pickers.registers " Registers" , desc = "[R]registers" },
|
||||||
|
|
Loading…
Add table
Reference in a new issue