Help with my config: ignore_files, relative_path, and some cleaning #2269
Answered
by
ibhagwan
icoderarely
asked this question in
Q&A
Replies: 2 comments 2 replies
-
opts = {
winopts = {
hls = {
normal = "Normal",
border = "Normal",
cursor = "Cursor",
search = "IncSearch",
},
},
files = {
prompt = "Files❯ ",
git_icons = false,
file_icons = true,
color_icons = true,
cmd= [[fd --color=never --type f --type l --exclude .git --exclude node_modules]],
-- if using rg (no fd installed)
--cmd = [[rg --color=never --files -g "!.git" - g "node_modules" <other folders>]],
-- this is also possible but slower (any lua pattern / magic char works)
-- file_ignore_patterns = { "node_modules" }
},
grep = {
-- add similar glob exclusions here (-g !node_mofules, etc)
cmd = "rg --column --line-number --no-heading --color=always --smart-case --max-columns=4096 -e",
-- or again, rhis
-- file_ignore_patterns = { "node_modules" }
}
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
icoderarely
-
![]() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible you can help with a sample config for this?
what I want to achieve is
Beta Was this translation helpful? Give feedback.
All reactions