feat(lvim): add easypick.nvim for managing dotfiles

chezmoi
sgoudham 2 years ago
parent 5db1307137
commit 46574e82c3
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -79,6 +79,7 @@ lvim.builtin.which_key.mappings["f"] = {
C = { "<cmd>Telescope commands<cr>", "Find Commands" }, C = { "<cmd>Telescope commands<cr>", "Find Commands" },
r = { "<cmd>Telescope oldfiles<cr>", "Open Recent File" }, r = { "<cmd>Telescope oldfiles<cr>", "Open Recent File" },
p = { "<cmd>Telescope projects<cr>", "Open Projects" }, p = { "<cmd>Telescope projects<cr>", "Open Projects" },
d = { "<cmd>Easypick chezmoi<cr>", "Open Dotfiles" },
} }
local _, actions = pcall(require, "telescope.actions") local _, actions = pcall(require, "telescope.actions")
@ -215,6 +216,21 @@ lvim.plugins = {
{ "gpanders/editorconfig.nvim" }, { "gpanders/editorconfig.nvim" },
{ "p00f/nvim-ts-rainbow" }, { "p00f/nvim-ts-rainbow" },
{ "nvim-treesitter/playground" }, { "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', 'stevearc/dressing.nvim',
config = function() config = function()

Loading…
Cancel
Save