From 2d01c40c8442d2a796901fc7f8702ae4cc35446e Mon Sep 17 00:00:00 2001 From: Dennis Potter Date: Mon, 3 Oct 2022 10:45:34 -0700 Subject: [PATCH] Add nvim-tree & rust plugins to Neovim configuration --- .config/nvim/init.vim | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 295fa38..86e5122 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -49,6 +49,13 @@ Plug 'f-person/git-blame.nvim' " Marks plugin Plug 'chentoast/marks.nvim' + +" File Explorer for Nvim +Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons +Plug 'kyazdani42/nvim-tree.lua' + +" rust +Plug 'rust-lang/rust.vim' call plug#end() " Set up Marks plugin @@ -88,3 +95,31 @@ EOF " Set syntax highlighting au BufNewFile,BufRead *.f set syntax=verilog + +" Configure nvim-tree +nmap n :NvimTreeToggle + +lua << EOF +-- disable netrw at the very start of your init.lua (strongly advised) +vim.g.loaded = 1 +vim.g.loaded_netrwPlugin = 1 + +-- OR setup with some options +require'nvim-tree'.setup { + sort_by = "case_sensitive", + view = { + adaptive_size = true, + mappings = { + list = { + { key = "u", action = "dir_up" }, + }, + }, + }, + renderer = { + group_empty = true, + }, + filters = { + dotfiles = true, + }, +} +EOF