From 410ee7c345a1709468f717dd629810dfdad69526 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Mon, 26 Aug 2024 00:41:05 +0200 Subject: [PATCH] vim: nvim-tree --- modules/base/vim.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/modules/base/vim.nix b/modules/base/vim.nix index 627809f..3338661 100644 --- a/modules/base/vim.nix +++ b/modules/base/vim.nix @@ -842,6 +842,25 @@ require("lualine").setup({}) ''; } + + # A File Explorer For Neovim Written In Lua. + # https://github.com/nvim-tree/nvim-tree.lua + { + plugin = nvim-tree-lua; + type = "lua"; + config = + # lua + '' + require("nvim-tree").setup({ + filters = { + custom = { + "^\\.git", + }, + }, + }) + vim.keymap.set("n", "e", vim.cmd.NvimTreeToggle) + ''; + } ]; extraPackages = [ nixpkgs-unstable.legacyPackages.${pkgs.system}.basedpyright