Add nvim-tree & rust plugins to Neovim configuration
This commit is contained in:
parent
6c84bf7294
commit
2d01c40c84
@ -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 <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
|
||||
|
Loading…
Reference in New Issue
Block a user