sort out nvim-tree

This commit is contained in:
Vladan Popovic 2023-02-24 22:45:49 +01:00
parent 2b9088acbf
commit 896451558b

View file

@ -12,8 +12,8 @@ return require('packer').startup(function()
vim.cmd('source ~/.config/nvim/lua/nvim-tree-config.vim') vim.cmd('source ~/.config/nvim/lua/nvim-tree-config.vim')
use { use {
'kyazdani42/nvim-tree.lua', 'nvim-tree/nvim-tree.lua',
requires = 'kyazdani42/nvim-web-devicons', requires = 'nvim-tree/nvim-web-devicons',
config = function() require'nvim-tree'.setup { config = function() require'nvim-tree'.setup {
create_in_closed_folder = false, create_in_closed_folder = false,
disable_netrw = true, disable_netrw = true,
@ -28,7 +28,7 @@ return require('packer').startup(function()
ignore = true ignore = true
}, },
diagnostics = { diagnostics = {
enable = false, enable = true,
icons = { icons = {
hint = "", hint = "",
info = "", info = "",
@ -107,12 +107,22 @@ return require('packer').startup(function()
} }
}, },
view = { view = {
width = 30,
hide_root_folder = false, hide_root_folder = false,
side = 'left',
mappings = { mappings = {
custom_only = false, custom_only = false,
list = {} list = {}
},
float = {
enable = true,
quit_on_focus_loss = true,
open_win_config = {
relative = "editor",
border = "rounded",
width = 30,
height = 30,
row = 1,
col = 1,
}
} }
} }
} end } end
@ -141,12 +151,10 @@ return require('packer').startup(function()
use { 'cespare/vim-toml' } use { 'cespare/vim-toml' }
use { 'folke/trouble.nvim' } use { 'folke/trouble.nvim' }
use { 'glepnir/lspsaga.nvim' }
use { 'hrsh7th/nvim-compe' } use { 'hrsh7th/nvim-compe' }
use { 'jacoborus/tender.vim' } use { 'jacoborus/tender.vim' }
use { 'RRethy/vim-illuminate' } use { 'RRethy/vim-illuminate' }
use { 'rust-lang/rust.vim' } use { 'rust-lang/rust.vim' }
use { 'scrooloose/nerdtree' }
use { 'vim-scripts/DrawIt' } use { 'vim-scripts/DrawIt' }
use { 'gleam-lang/gleam.vim' } use { 'gleam-lang/gleam.vim' }