view the rest of the comments
Neovim
Neovim is a modal text editor forked off of Vim in 2014. Being modal means that you do not simply type text on screen, but the behavior and functionality of the editor changes entirely depending on the mode.
The most common and most used mode, the "normal mode" for Neovim is to essentially turn your keyboard in to hotkeys with which you can navigate and manipulate text. Several modes exist, but two other most common ones are "insert mode" where you type in text directly as if it was a traditional text editor, and "visual mode" where you select text.
Neovim seeks to enable further community participation in its development and to make drastic changes without turning it in to something that is "not Vim". Neovim also seeks to enable embedding the editor within GUI applications.
The Neovim logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.
You will need to wrap the third argument to keymap.set in a function, like so:
This seems to work, but for some reason when I do it, it gives me a massive list of all files (recursively) in the directory I ran nvim from. So if I run it in home, its going to be a massive list
Sorry, I missed the previous message. Glad you got it working with the help of @rewire@programming.dev.
Regarding the massive list, yeah that is expected. If you haven't got fd or rg installed in you system, telescope falls back to regular
find
. Find doesn't have any sort of builtin ignore list, so it just lists all the files. If you are using thebuiltin.find_files
normally, I think it executes (at least something close to)With the
hidden=true
, it does something along the lines ofBoth of these commands are executed from the
cwd
(normally the directory you started nvim in). If you want it only show to a certain depth, you can use the telescope's setup to change the defaultfind_command
Modify that to your requirement and then use the keymap to call
builtin.find_files()
and it should work.Hey, its me, 300 years after your initial reply :3
I installed
fd
and it seems to be working great now. Thanks for the tip!