open dir with nvim (#316)
opening dir with nvim will work by default but since we have lazy loaded nvimtree , it doesnt update the cwd in nvimtree. This will fix that.
This commit is contained in:
		
							parent
							
								
									83992378a4
								
							
						
					
					
						commit
						c60df482e9
					
				| @ -71,6 +71,8 @@ for _, plugin in pairs(disabled_built_ins) do | |||||||
|    g["loaded_" .. plugin] = 1 |    g["loaded_" .. plugin] = 1 | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | vim.cmd [[ autocmd BufEnter * if &buftype != "terminal" | lcd %:p:h | endif ]] | ||||||
|  | 
 | ||||||
| -- Use relative & absolute line numbers in 'n' & 'i' modes respectively | -- Use relative & absolute line numbers in 'n' & 'i' modes respectively | ||||||
| -- vim.cmd[[ au InsertEnter * set norelativenumber ]] | -- vim.cmd[[ au InsertEnter * set norelativenumber ]] | ||||||
| -- vim.cmd[[ au InsertLeave * set relativenumber ]] | -- vim.cmd[[ au InsertLeave * set relativenumber ]] | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user