Add auto-detection of OS and distro to scripts
This commit is contained in:
@@ -1,12 +1,3 @@
|
||||
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",
|
||||
@@ -27,13 +18,17 @@ return {
|
||||
find_files = {
|
||||
find_command = {
|
||||
"rg", "--no-ignore", "--hidden", "--files",
|
||||
unpack(glob_patterns_find_files),
|
||||
"-g", "!**/.git/**",
|
||||
"-g", "!**/build/**",
|
||||
"-g", "!**/node_modules/**",
|
||||
},
|
||||
},
|
||||
live_grep = {
|
||||
additional_args = {
|
||||
"--no-ignore", "--hidden",
|
||||
unpack(glob_patterns_live_grep),
|
||||
"-g", "!**/.git/**",
|
||||
"-g", "!**/build/**",
|
||||
"-g", "!**/node_modules/**",
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user