commit 2c08e2ddfde185c2d8e095837e070d7cd0849214
parent e88833386beced9c2471a675744152c5d2da66e4
Author: Tomas Nemec <nemi@skaut.cz>
Date: Thu, 23 Feb 2023 11:09:37 +0100
update
Diffstat:
2 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua
@@ -41,7 +41,8 @@ vim.keymap.set('n', '<space>l', builtin('current_buffer_fuzzy_find', l.dd_large_
vim.keymap.set('n', '<space>b', builtin('buffers', l.dd_large()), { desc = 'Telescope Buffers' })
vim.keymap.set('n', '<space>h', builtin('help_tags'), { desc = 'Telescope Help Tags' })
vim.keymap.set('n', '<space>d', builtin('diagnostics', l.dd_large()), { desc = 'Telescope Diagnostics' })
-vim.keymap.set('n', '<space>f', builtin('git_files', l.dd_large_noprev()), { desc = 'Telescope Find Files' })
+vim.keymap.set('n', '<space>f', builtin('git_files', l.dd_large_noprev({ show_untracked = true })),
+ { desc = 'Telescope Find Files' })
vim.keymap.set('n', '<space>F', function()
local opts = l.dd_large_noprev()
opts.no_ignore = true
diff --git a/lua/tms/p/telescope.lua b/lua/tms/p/telescope.lua
@@ -11,20 +11,28 @@ local M = {}
local L = {}
M.L = L
-function L.dd()
- return themes.get_dropdown()
+function L.dd(opts)
+ opts = opts or {}
+ return themes.get_dropdown(opts)
end
-function L.dd_noprev()
- return themes.get_dropdown({ previewer = false })
+function L.dd_noprev(opts)
+ opts = opts or {}
+ opts.previewer = false
+ return themes.get_dropdown(opts)
end
-function L.dd_large()
- return themes.get_dropdown({ layout_config = { width = 120 } })
+function L.dd_large(opts)
+ opts = opts or {}
+ opts.layout_config = { width = 120 }
+ return themes.get_dropdown(opts)
end
-function L.dd_large_noprev()
- return themes.get_dropdown { layout_config = { width = 120 }, previewer = false }
+function L.dd_large_noprev(opts)
+ opts = opts or {}
+ opts.previewer = false
+ opts.layout_config = { width = 120 }
+ return themes.get_dropdown(opts)
end
M.mail_address = function()