From 68ceebb5955b2657c86ee3e8123e9a6a3fc0b584 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Mon, 7 Feb 2022 13:57:57 +0200 Subject: [PATCH] feat: attempt to use nvim-tree instead --- dotfiles/neovim/lua/my/plugins/init.lua | 4 +++- dotfiles/neovim/lua/my/plugins/nvim-tree.lua | 11 +++++++++++ modules/applications/neovim.nix | 5 ++--- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 dotfiles/neovim/lua/my/plugins/nvim-tree.lua diff --git a/dotfiles/neovim/lua/my/plugins/init.lua b/dotfiles/neovim/lua/my/plugins/init.lua index 8fe3d0c..f2db290 100644 --- a/dotfiles/neovim/lua/my/plugins/init.lua +++ b/dotfiles/neovim/lua/my/plugins/init.lua @@ -6,11 +6,13 @@ function M.setup() require("my.plugins.telescope").setup() require("my.plugins.treesitter").setup() require("my.plugins.comment").setup() - require("my.plugins.nerdtree").setup() + -- require("my.plugins.nerdtree").setup() + require("my.plugins.nvim-tree").setup() -- Other unconfigured plugins require('nvim-autopairs').setup() require("startup").setup({theme = "dashboard"}) + require('lualine').setup({theme = "github"}) end return M diff --git a/dotfiles/neovim/lua/my/plugins/nvim-tree.lua b/dotfiles/neovim/lua/my/plugins/nvim-tree.lua new file mode 100644 index 0000000..a457b00 --- /dev/null +++ b/dotfiles/neovim/lua/my/plugins/nvim-tree.lua @@ -0,0 +1,11 @@ +local mapSilent = require("my.keymaps").mapSilent + +local M = {} + +function M.setup() + require'nvim-tree'.setup() + -- Toggle nerdtree with Control-t + mapSilent("n", "", ":NvimTreeToggle") +end + +return M diff --git a/modules/applications/neovim.nix b/modules/applications/neovim.nix index 6c80d12..71901f8 100644 --- a/modules/applications/neovim.nix +++ b/modules/applications/neovim.nix @@ -47,9 +47,8 @@ in vim-devicons # nice looking icons nvim-web-devicons # fork of vim-devicons? plenary-nvim # async utility lib it seems? - nerdtree # file tree - nerdtree-git-plugin # show git status for files - nerdtree-syntax-highlight # syntax hightlight files in the tree + lualine-nvim # customizable status line + nvim-tree # file tree ]; }; }