nix-config/modules/home-manager/nvim/nvim-tree.nix
Gabe Venberg 6f0e167087 added enable option to nvim
changed home-manager personal config namespace from home.* to user.*
2024-05-29 13:40:03 -05:00

35 lines
704 B
Nix

{
config,
lib,
pkgs,
...
}: {
config = lib.mkIf config.user.nvim.enable {
programs.nixvim = {
plugins.nvim-tree = {
enable = true;
disableNetrw = true;
hijackCursor = true;
hijackNetrw = true;
hijackUnnamedBufferWhenOpening = true;
actions = {
useSystemClipboard = true;
changeDir.enable = true;
};
filesystemWatchers.enable = true;
};
keymaps = [
{
action = ":NvimTreeToggle<CR>";
key = "<leader>t";
mode = "n";
options = {
silent = true;
desc = "toggle file browser";
};
}
];
};
};
}