This module integrates powerful file exploration plugins into your Neovim setup. Users can choose between three supported options: Neo-tree, Oil, and Mini.files. Each offers unique capabilities tailored to different workflows.
To enable an explorer, configure it in your Nix setup by setting the appropriate option. Below are the steps for each explorer:
# Add to your Nix configuration
modules.imports = [
inputs.nvix.nvixModules.utils
inputs.nvix.nvixModules.explorer
];
config.nvix.explorer.<name> = enable; # Replace <name> with neo-tree, oil, or mini
Note: The
utils
module is required to ensure functionality.
- Seamless integration with popular file explorer plugins.
- Choose between Neo-tree, Oil, and Mini.files.
- Configurable keybindings for each explorer.
Depending on the explorer you enable, the following default keybindings will be mapped:
Keybinding | Action | Explorer |
---|---|---|
<leader>e |
Open File Explorer | Neo-tree |
<leader>e |
Open File Explorer | Oil |
<leader>e |
Open File Explorer | Mini.files |
- Description: A modern file explorer with a rich set of features.
- Keybinding:
<leader>e
opens the Neo-tree explorer. - No additional inputs are required.
- Description: A unique file explorer that extends Neovim's capabilities with advanced integrations.
- Keybinding:
<leader>e
opens the Oil explorer.
To enable Oil's advanced features such as LSP diagnostics and VCS status, add the following to your flake inputs:
oil-vcs-status = {
url = "github:SirZenith/oil-vcs-status";
flake = false;
};
oil-lsp-diagnostics = {
url = "github:JezerM/oil-lsp-diagnostics.nvim";
flake = false;
};
- Description: A lightweight and simple file explorer for quick navigation.
- Keybinding:
<leader>e
opens the Mini.files explorer. - No additional inputs are required.
mini.files | neo-tree (default) | oil.nvim |
---|---|---|
- Choose the explorer that best suits your workflow.
- Customize the layout, behavior, and keybindings as needed.
- For Oil, ensure the required flake inputs are included if advanced features are desired.