aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/telescope.lua
diff options
context:
space:
mode:
authoreric.marin <maarin.eric@gmail.com>2025-03-05 22:25:17 +0100
committereric.marin <maarin.eric@gmail.com>2025-03-05 22:26:26 +0100
commit6d95f092e30737d49b650891e93de518498523a3 (patch)
tree469db0917af455a1a354123f8d5ee27a228dae38 /nvim/lua/plugins/telescope.lua
parent4de5a217c25fe83bb54063f8d842b78c9e6d7fb3 (diff)
downloaddotfiles-6d95f092e30737d49b650891e93de518498523a3.tar.gz
dotfiles-6d95f092e30737d49b650891e93de518498523a3.zip
neorg
Diffstat (limited to 'nvim/lua/plugins/telescope.lua')
-rw-r--r--nvim/lua/plugins/telescope.lua48
1 files changed, 23 insertions, 25 deletions
diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua
index 0796d4f..bc29d8c 100644
--- a/nvim/lua/plugins/telescope.lua
+++ b/nvim/lua/plugins/telescope.lua
@@ -15,33 +15,31 @@ local init = function()
keymap.set("n", "<Space>tb", ":Telescope buffers<Enter>", opts) -- Buffers
end
-local config = function()
- require("telescope").setup({
- defaults = {
- mappings = {
- i = {
- ["<C-j>"] = "move_selection_next",
- ["<C-k>"] = "move_selection_previous",
- },
+local opts = {
+ defaults = {
+ mappings = {
+ i = {
+ ["<C-j>"] = "move_selection_next",
+ ["<C-k>"] = "move_selection_previous",
},
},
- picker = {
- find_files = {
- theme = "dropdown",
- previewer = false,
- hidden = true,
- },
- live_grep = {
- theme = "dropdown",
- previewer = false,
- },
- find_buffers = {
- theme = "dropdown",
- previewer = false,
- },
+ },
+ picker = {
+ find_files = {
+ theme = "dropdown",
+ previewer = false,
+ hidden = true,
},
- })
-end
+ live_grep = {
+ theme = "dropdown",
+ previewer = false,
+ },
+ find_buffers = {
+ theme = "dropdown",
+ previewer = false,
+ },
+ },
+}
return {
"nvim-telescope/telescope.nvim",
@@ -49,5 +47,5 @@ return {
lazy = true,
cmd = "Telescope",
init = init,
- config = config
+ opts = opts,
}