2024-03-24 23:39:49 +01:00
|
|
|
{
|
2024-05-29 20:40:03 +02:00
|
|
|
config,
|
|
|
|
lib,
|
2024-03-24 23:39:49 +01:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-05-29 20:40:03 +02:00
|
|
|
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;
|
2024-03-24 23:39:49 +01:00
|
|
|
};
|
2024-05-29 20:40:03 +02:00
|
|
|
keymaps = [
|
|
|
|
{
|
|
|
|
action = ":NvimTreeToggle<CR>";
|
|
|
|
key = "<leader>t";
|
|
|
|
mode = "n";
|
|
|
|
options = {
|
|
|
|
silent = true;
|
|
|
|
desc = "toggle file browser";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2024-03-24 23:39:49 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|