Skip to content

Commit f15f096

Browse files
committed
feat: enable directory preview by default for Telescope
1 parent 64d60f7 commit f15f096

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ You can install the plugin using your preferred package manager.
3939
},
4040
picker = {
4141
type = "telescope", -- or "fzf-lua"
42+
preview = true, -- show directory structure preview in Telescope
4243
}
4344
},
4445
init = function()
@@ -76,6 +77,7 @@ use({
7677
},
7778
picker = {
7879
type = "telescope", -- or "fzf-lua"
80+
preview = true, -- show directory structure preview in Telescope
7981
}
8082
}
8183
end,
@@ -108,6 +110,7 @@ use({
108110
},
109111
picker = {
110112
type = "telescope", -- or "fzf-lua"
113+
preview = true, -- show directory structure preview in Telescope
111114
}
112115
}
113116
end,
@@ -176,7 +179,7 @@ use({
176179
-- Fallback to builtin select ui if the specified picker is not available
177180
picker = {
178181
type = "telescope", -- or "fzf-lua"
179-
preview = false,
182+
preview = true, -- show directory structure preview in Telescope
180183
opts = {
181184
-- picker-specific options
182185
},

doc/neovim-project.txt

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Lazy.nvim ~
5858
},
5959
picker = {
6060
type = "telescope", -- or "fzf-lua"
61+
preview = true, -- show directory structure preview in telescope
6162
}
6263
},
6364
init = function()
@@ -93,6 +94,7 @@ packer.nvim ~
9394
},
9495
picker = {
9596
type = "telescope", -- or "fzf-lua"
97+
preview = true, -- show directory structure preview in telescope
9698
}
9799
}
98100
end,
@@ -123,6 +125,7 @@ pckr.nvim ~
123125
},
124126
picker = {
125127
type = "telescope", -- or "fzf-lua"
128+
preview = true, -- show directory structure preview in telescope
126129
}
127130
}
128131
end,
@@ -191,6 +194,7 @@ DEFAULT OPTIONS: ~
191194
-- Fallback to builtin select ui if the specified picker is not available
192195
picker = {
193196
type = "telescope", -- or "fzf-lua"
197+
preview = true, -- show directory structure preview in telescope
194198
opts = {
195199
-- picker-specific options
196200
},

lua/neovim-project/config.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ M.defaults = {
5353
-- Fallback to builtin select ui if the specified picker is not available
5454
picker = {
5555
type = "telescope", -- or "fzf-lua"
56-
preview = false,
56+
preview = true, -- show directory structure preview in Telescope
5757
opts = {
5858
-- picker-specific options
5959
},

0 commit comments

Comments
 (0)