How to make find files start search in the current working directory? #1458
Answered
by
rachit-ranjan16
rachit-ranjan16
asked this question in
Q&A
-
|
Common Question that keeps popping up in the ThePrimagen/#Telescope discord server |
Beta Was this translation helpful? Give feedback.
Answered by
rachit-ranjan16
Nov 15, 2021
Replies: 1 comment
-
|
:h builtins.find_files() => {search_dirs} should make this work with the current directory (vim.fn.getcwd). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rachit-ranjan16
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
:h builtins.find_files() => {search_dirs} should make this work with the current directory (vim.fn.getcwd).
search_dirs should be a set and you add the cwd + file to it or only set it to the cwd + file.
http://lua-users.org/wiki/TablesTutorial