skywind3000 / z.lua

:zap: A new cd command that helps you navigate faster by learning your habits.
MIT License
3.01k stars 141 forks source link

integration with neovim dirictories #155

Open ghost opened 2 years ago

ghost commented 2 years ago

i use neovim a lot, and i want to make z.lua to remember the files/directories that i open using the nvim command. is that possible ?

FelipeLema commented 8 hours ago

you could run an "add directory" command to an event (say BufReadPost)

The command should be something like eval "$(env luajit /your/custom/path/to/z.lua/z.lua --init)"; _zlua add %s