From baae94abb6a9a03914216f0f373b7b0f6b0207bd Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 19 Sep 2026 01:40:50 +0530 Subject: chore: removed all raw string configurations options in favor of files Moved all configurations which were previously raw strings chunks, for options that the home-manager options didn't provide, into files for that specific configuration and reading there contents instead (with string replacement for passing information from the rest of the configuration). --- .../nixvim/plugins/nvim-tree/default.nix | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 modules/development/nixvim/plugins/nvim-tree/default.nix (limited to 'modules/development/nixvim/plugins/nvim-tree/default.nix') diff --git a/modules/development/nixvim/plugins/nvim-tree/default.nix b/modules/development/nixvim/plugins/nvim-tree/default.nix new file mode 100644 index 0000000..f54ada2 --- /dev/null +++ b/modules/development/nixvim/plugins/nvim-tree/default.nix @@ -0,0 +1,56 @@ +# File explorer sidebar +{ config, lib, ... }: +{ + config.programs.nixvim = lib.mkIf config.development.nixvim.enable { + plugins.nvim-tree = { + enable = true; + settings = { + filters = { + dotfiles = false; + git_clean = false; + no_buffer = false; + custom = { }; + }; + git = { + enable = true; + ignore = false; + }; + view = { + width = 30; + }; + renderer = { + indent_markers = { + enable = true; + inline_arrows = false; + icons = { + corner = "└"; + edge = "│"; + item = "├"; + bottom = "─"; + none = " "; + }; + }; + icons = { + show = { + folder = true; + folder_arrow = false; + file = true; + git = true; + }; + }; + }; + }; + }; + + keymaps = [ + { + key = "nt"; + action = "NvimTreeToggle"; + mode = [ + "n" + ]; + options.desc = "Toggle file explorer"; + } + ]; + }; +} -- cgit v1.2.3