add some options for nvimtree
This commit is contained in:
		
							parent
							
								
									d2db2cc1cd
								
							
						
					
					
						commit
						7c9bf9cbe3
					
				| @ -79,6 +79,12 @@ M.plugins = { | ||||
|       }, | ||||
|       nvimtree = { | ||||
|          enable_git = 0, | ||||
| 
 | ||||
|          ui = { | ||||
|             allow_resize = true, | ||||
|             side = "left", | ||||
|             width = 25, | ||||
|          }, | ||||
|       }, | ||||
|       luasnip = { | ||||
|          snippet_path = {}, | ||||
|  | ||||
| @ -1,5 +1,9 @@ | ||||
| local present, nvimtree = pcall(require, "nvim-tree") | ||||
| local git_status = require("core.utils").load_config().plugins.options.nvimtree.enable_git | ||||
| 
 | ||||
| local conf = require("core.utils").load_config().plugins.options.nvimtree | ||||
| 
 | ||||
| local git_status = conf.enable_git | ||||
| local ui = conf.ui | ||||
| 
 | ||||
| if not present then | ||||
|    return | ||||
| @ -62,12 +66,7 @@ nvimtree.setup { | ||||
|       enable = true, | ||||
|       update_cwd = false, | ||||
|    }, | ||||
|    view = { | ||||
|       allow_resize = true, | ||||
|       side = "left", | ||||
|       width = 25, | ||||
|    }, | ||||
| 
 | ||||
|    view = ui, | ||||
|    git = { | ||||
|       ignore = false, | ||||
|    }, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user