mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	refactor: use vim._with where possible
				
					
				
			This mostly means replacing `nvim_buf_call` and `nvim_win_call` with `vim._with`.
This commit is contained in:
		| @@ -115,7 +115,7 @@ describe('eval-API', function() | ||||
|         exec_lua, | ||||
|         [[ | ||||
|          local cmdwin_buf = vim.api.nvim_get_current_buf() | ||||
|          vim.api.nvim_buf_call(vim.api.nvim_create_buf(false, true), function() | ||||
|          vim._with({buf = vim.api.nvim_create_buf(false, true)}, function() | ||||
|            vim.api.nvim_open_term(cmdwin_buf, {}) | ||||
|          end) | ||||
|        ]] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 dundargoc
					dundargoc