From 46574e82c3e680c5e8501b1d3a64b79520a2cd81 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 10 Dec 2022 18:53:19 +0000 Subject: [PATCH] feat(lvim): add easypick.nvim for managing dotfiles --- dot_config/lvim/config.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dot_config/lvim/config.lua b/dot_config/lvim/config.lua index a47b853..2345d83 100644 --- a/dot_config/lvim/config.lua +++ b/dot_config/lvim/config.lua @@ -79,6 +79,7 @@ lvim.builtin.which_key.mappings["f"] = { C = { "Telescope commands", "Find Commands" }, r = { "Telescope oldfiles", "Open Recent File" }, p = { "Telescope projects", "Open Projects" }, + d = { "Easypick chezmoi", "Open Dotfiles" }, } local _, actions = pcall(require, "telescope.actions") @@ -215,6 +216,21 @@ lvim.plugins = { { "gpanders/editorconfig.nvim" }, { "p00f/nvim-ts-rainbow" }, { "nvim-treesitter/playground" }, + { + "axkirillov/easypick.nvim", + config = function() + local easypick = require("easypick") + easypick.setup { + pickers = { + { + name = "chezmoi", + command = [[chezmoi managed -x encrypted -i files | awk '{ printf("%s/%s\n", "~", $0) }']], + opts = require('telescope.themes').get_dropdown({}) + }, + }, + } + end + }, { 'stevearc/dressing.nvim', config = function()