moved nixvim into own home-manager module.
moved pass store location.
This commit is contained in:
parent
bbc6beb3da
commit
2253c6c34a
28 changed files with 24 additions and 11 deletions
31
modules/home-manager/nvim/nvim-tree.nix
Normal file
31
modules/home-manager/nvim/nvim-tree.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
configs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
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";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue