diff options
| author | 2023-05-30 12:30:41 +0200 | |
|---|---|---|
| committer | 2023-05-30 12:30:41 +0200 | |
| commit | cd912ac5ee541fdee8a594d49263053813ff547f (patch) | |
| tree | 490b44991a316d0161d79c7bf1dc1184c1e0c8d4 | |
| parent | fastfetch: template for home dir (diff) | |
nvim: custom telescope starter
| -rw-r--r-- | dot_config/nvim/lua/plugins/mini/starter.lua | 16 |
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(), }, } |
