Nothing has been this close to an IDE!
Treemux
opens a sidebar with Neovim's Nvim-Tree file explorer,
with additional cool features like:
Of course you also get:
prefix + Tab
key binding opens a sidebar but does not move
cursor to it.Furthermore, it will detect git directory and open that as root, while still opening current directory.
Tested and working on Linux, MacOS and Windows WSL2.
prefix + Tab
- toggle sidebar with a directory treeprefix + Backspace
- toggle sidebar and move cursor to it (focus it)NOTE: Instant IDE modes are deprecated. Now you can just open a file from the tree without entering this mode.
Add plugin to the list of TPM plugins in .tmux.conf
:
set -g @treemux-tree-nvim-init-file '~/.tmux/plugins/treemux/configs/treemux_init.lua'
set -g @plugin 'kiyoon/treemux'
treemux_init.lua
file somewhere outside the repo and modifying the file.Hit prefix + I
to fetch the plugin and source it.
Install python support for Neovim.
pip3 install --user pynvim
Make sure you have Neovim and lsof installed.
nvim --version
lsof -h # most distro include this, but maybe Arch wouldn't have it.
You should now be able to use the plugin.
Not only updating the plugin itself (prefix + U
),
you need to also update the neovim plugins.
Run this from the side tree:
:Lazy update
treemux-nvim
command. (e.g. treemux-nvim file.py
)