Add nvim-tree & rust plugins to Neovim configuration

This commit is contained in:
Dennis Potter 2022-10-03 10:45:34 -07:00
parent 6c84bf7294
commit 2d01c40c84

View File

@ -49,6 +49,13 @@ Plug 'f-person/git-blame.nvim'
" Marks plugin " Marks plugin
Plug 'chentoast/marks.nvim' 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() call plug#end()
" Set up Marks plugin " Set up Marks plugin
@ -88,3 +95,31 @@ EOF
" Set syntax highlighting " Set syntax highlighting
au BufNewFile,BufRead *.f set syntax=verilog au BufNewFile,BufRead *.f set syntax=verilog
" Configure nvim-tree
nmap <leader>n :NvimTreeToggle <CR>
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