summaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/plugins
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-30 12:30:41 +0200
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-30 12:30:41 +0200
commitcd912ac5ee541fdee8a594d49263053813ff547f (patch)
tree490b44991a316d0161d79c7bf1dc1184c1e0c8d4 /dot_config/nvim/lua/plugins
parentfastfetch: template for home dir (diff)
nvim: custom telescope starter
Diffstat (limited to 'dot_config/nvim/lua/plugins')
-rw-r--r--dot_config/nvim/lua/plugins/mini/starter.lua16
1 files changed, 10 insertions, 6 deletions
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(),
},
}