feat(nixvim): add nvimtree and keybind
This commit is contained in:
parent
a141198878
commit
474d30652a
3 changed files with 36 additions and 7 deletions
27
users/modules/programs/nixvim-plugins/nvim-tree.nix
Normal file
27
users/modules/programs/nixvim-plugins/nvim-tree.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
programs.nixvim = {
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "t";
|
||||
action = ":NvimTreeToggle<CR>";
|
||||
}
|
||||
];
|
||||
plugins = {
|
||||
web-devicons.enable = true;
|
||||
|
||||
nvim-tree = {
|
||||
enable = true;
|
||||
autoClose = true;
|
||||
disableNetrw = true;
|
||||
hijackNetrw = true;
|
||||
hijackCursor = true;
|
||||
view = {
|
||||
cursorline = true;
|
||||
side = "right";
|
||||
width = "25%";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,10 +1,15 @@
|
|||
{ inputs, ... }: {
|
||||
imports = [ inputs.nixvim.homeManagerModules.nixvim ];
|
||||
imports = [
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
./nixvim-plugins/nvim-tree.nix
|
||||
];
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
extraConfigLua = "";
|
||||
extraConfigLua = "";
|
||||
extraPlugins = [];
|
||||
|
||||
opts = {
|
||||
|
@ -13,12 +18,10 @@
|
|||
relativenumber = true;
|
||||
};
|
||||
|
||||
clipboard.providers.wl-copy.enable = true;
|
||||
|
||||
colorschemes = {
|
||||
catppuccin.enable = true;
|
||||
};
|
||||
|
||||
plugins = {
|
||||
lualine.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
./programs/direnv.nix
|
||||
./programs/fzf.nix
|
||||
./programs/git.nix
|
||||
#./programs/nvim.nix
|
||||
./programs/nixvim.nix
|
||||
./programs/starship.nix
|
||||
./programs/tealdeer.nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue