Simplify structure for nvim config files
This commit is contained in:
41
src_files/.config/nvim/lua/plugins_lazy/telescope.lua
Normal file
41
src_files/.config/nvim/lua/plugins_lazy/telescope.lua
Normal file
@@ -0,0 +1,41 @@
|
||||
local glob_patterns_find_files = {
|
||||
"-g", "!**/.git/**",
|
||||
"-g", "!**/build/**",
|
||||
"-g", "!**/node_modules/**",
|
||||
}
|
||||
local glob_patterns_live_grep = {
|
||||
unpack(glob_patterns_find_files), -- same for now
|
||||
}
|
||||
|
||||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
tag = "0.1.8",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = {
|
||||
defaults = {
|
||||
layout_strategy = "horizontal",
|
||||
layout_config = {
|
||||
horizontal = {
|
||||
width = 0.98,
|
||||
height = 0.98,
|
||||
preview_width = 0.45,
|
||||
},
|
||||
},
|
||||
path_display = { "truncate", },
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
find_command = {
|
||||
"rg", "--no-ignore", "--hidden", "--files",
|
||||
unpack(glob_patterns_find_files),
|
||||
},
|
||||
},
|
||||
live_grep = {
|
||||
additional_args = {
|
||||
"--no-ignore", "--hidden",
|
||||
unpack(glob_patterns_live_grep),
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user