-
When doing a grep across a React project, I'd like to add a couple of modules in the node_modules directory so that they are also searched (along with the project itself). Is this possible? This would be only applicable to one project, not every project I open in Neovim. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
neo-tree.nvim/lua/neo-tree/defaults.lua Line 491 in 6604275 However scanning more files means more overhead so be careful or your neovim may freeze for some amount of time. |
Beta Was this translation helpful? Give feedback.
@dbarros
find_args
can be a function that will be called on the fly as it is explained in defaults.lua.You can use whatever lua method to detect the current project and branch out depending on the condition.
vim.fn.getcwd() == "/path/to/my-project"
or anything else.If you are not familiar with lua, tell me what you want and I can help you.