From 52e2648a7989db6eaad611bcd2b99cbbd5bd5987 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 18 Jun 2021 15:35:19 +0200 Subject: [PATCH] Add tt for open tree and tr to refresh tree file --- configs/nvim/init.vim | 3 +++ configs/nvim/lua/adopi/init.lua | 28 +++++++++++++++------------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/configs/nvim/init.vim b/configs/nvim/init.vim index 20463c0..84f9819 100644 --- a/configs/nvim/init.vim +++ b/configs/nvim/init.vim @@ -48,4 +48,7 @@ nnoremap fg Telescope live_grep nnoremap fb Telescope buffers nnoremap fh Telescope help_tags +" NvimTreeToggle +nnoremap tt :NvimTreeToggle +nnoremap tr :NvimTreeRefresh diff --git a/configs/nvim/lua/adopi/init.lua b/configs/nvim/lua/adopi/init.lua index 163dca6..29b49f5 100644 --- a/configs/nvim/lua/adopi/init.lua +++ b/configs/nvim/lua/adopi/init.lua @@ -12,23 +12,25 @@ vim.cmd [[packadd packer.nvim]] require('packer').startup(function() - -- Packer can manage itself - use 'wbthomason/packer.nvim' + -- Packer can manage itself + use 'wbthomason/packer.nvim' - use {'dracula/vim'} - use {'whatyouhide/vim-gotham'} - use {'neovim/nvim-lspconfig'} - use {'hrsh7th/nvim-compe'} - use {'shaunsingh/moonlight.nvim'} + use {'dracula/vim'} + use {'whatyouhide/vim-gotham'} + use {'neovim/nvim-lspconfig'} + use {'hrsh7th/nvim-compe'} + use {'shaunsingh/moonlight.nvim'} - -- Telescope project search - use { - 'nvim-telescope/telescope.nvim', - requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}} - } + -- Telescope project search + use { + 'nvim-telescope/telescope.nvim', + requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}} + } - use {'nvim-treesitter/nvim-treesitter'} + use {'nvim-treesitter/nvim-treesitter'} + use 'kyazdani42/nvim-web-devicons' -- removing this line doesn't change the error + use 'kyazdani42/nvim-tree.lua' end)