From dc8cd06cf78b41c68364da1b66fea60422e6dc2d Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Tue, 10 Dec 2024 13:06:17 -0500 Subject: [PATCH] feat: add telescope picker for yadm files --- .config/nvim/lua/plugins/disabled.lua | 11 +++++------ .config/nvim/lua/plugins/telescope-yadm.lua | 18 ++++++++++++++++++ .config/nvim/lua/plugins/telescope.lua | 6 ++++-- 3 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 .config/nvim/lua/plugins/telescope-yadm.lua diff --git a/.config/nvim/lua/plugins/disabled.lua b/.config/nvim/lua/plugins/disabled.lua index c8a63e6..ae6d292 100644 --- a/.config/nvim/lua/plugins/disabled.lua +++ b/.config/nvim/lua/plugins/disabled.lua @@ -41,11 +41,6 @@ return { 'MeanderingProgrammer/render-markdown.nvim', enabled = false, }, - { - -- does the same thing as git_files for yadm - 'pschmitt/telescope-yadm.nvim', - enabled = false, - }, { -- couldn't get this working.. 'JoosepAlviste/nvim-ts-context-commentstring', @@ -56,4 +51,8 @@ return { }, enabled = false, }, -} + { + 'debugloop/telescope-undo.nvim', + enabled = false, + }, +} \ No newline at end of file diff --git a/.config/nvim/lua/plugins/telescope-yadm.lua b/.config/nvim/lua/plugins/telescope-yadm.lua new file mode 100644 index 0000000..87d8b55 --- /dev/null +++ b/.config/nvim/lua/plugins/telescope-yadm.lua @@ -0,0 +1,18 @@ +return { + -- does the same thing as git_files, but for yadm + 'pschmitt/telescope-yadm.nvim', + dependencies = { + 'nvim-telescope/telescope.nvim', + }, + enabled = true, + event = 'VeryLazy', + + config = function(_, opts) + local telescope = require('telescope') + + telescope.setup(opts) + telescope.load_extension('yadm_files') + telescope.load_extension('git_or_files') + telescope.load_extension('git_or_yadm_files') + end, +} diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index 61b0578..e26e866 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua @@ -50,8 +50,10 @@ return { }, }, extensions = { - 'fzf', + fzf = {}, }, }) + + telescope.load_extension('fzf') end, -} \ No newline at end of file +}