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