From cd912ac5ee541fdee8a594d49263053813ff547f Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Tue, 30 May 2023 12:30:41 +0200 Subject: nvim: custom telescope starter --- dot_config/nvim/lua/plugins/mini/starter.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'dot_config') diff --git a/dot_config/nvim/lua/plugins/mini/starter.lua b/dot_config/nvim/lua/plugins/mini/starter.lua index ed2246d..539aa11 100644 --- a/dot_config/nvim/lua/plugins/mini/starter.lua +++ b/dot_config/nvim/lua/plugins/mini/starter.lua @@ -1,15 +1,19 @@ local starter = require 'mini.starter' -local function telescope() - local builtinf = starter.sections.telescope() - local builtin = builtinf() - table.remove(builtin, 1) - return function() return builtin end +local telescope = { + {action = 'Telescope commands', name = 'Commands'}, + {action = 'Telescope find_files', name = 'Files'}, + {action = 'Telescope help_tags', name = 'Help tags'}, + {action = 'Telescope live_grep', name = 'Live grep'}, + {action = 'Telescope oldfiles', name = 'Old files'}, +} +for _, v in ipairs(telescope) do + v.section = 'Telescope' end return { items = { - telescope(), + telescope, starter.sections.builtin_actions(), }, } -- cgit v1.2.3