big changes to neovim, might streamline later, also some term environment settings

This commit is contained in:
cnst
2024-08-19 21:24:21 +02:00
parent 5f2487c4ab
commit dffdbb1581
52 changed files with 1471 additions and 447 deletions

View File

@@ -1,22 +1,36 @@
{ lib
, config
, ...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.modules.devtools.neovim.plugins.neo-tree;
in
{
programs.nixvim = {
keymaps = [
{
mode = "n";
key = "<leader>n";
action = ":Neotree action=focus reveal toggle<CR>";
options.silent = true;
}
];
options = {
modules.devtools.neovim.plugins.neo-tree.enable = mkEnableOption "Enables Neo-tree plugin for Neovim";
};
plugins.neo-tree = {
enable = true;
config = mkIf cfg.enable {
programs.nixvim = {
plugins.neo-tree = {
enable = true;
closeIfLastWindow = true;
window = {
width = 30;
autoExpandWidth = true;
closeIfLastWindow = true;
window = {
width = 30;
autoExpandWidth = true;
};
};
keymaps = [
{
mode = "n";
key = "<leader>n";
action = ":Neotree action=focus reveal toggle<CR>";
options.silent = true;
}
];
};
};
}