mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 14:43:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -5,6 +5,12 @@ call ale#Set('php_langserver_executable', 'php-language-server.php') | ||||
| call ale#Set('php_langserver_use_global', get(g:, 'ale_use_global_executables', 0)) | ||||
|  | ||||
| function! ale_linters#php#langserver#GetProjectRoot(buffer) abort | ||||
|     let l:composer_path = ale#path#FindNearestFile(a:buffer, 'composer.json') | ||||
|  | ||||
|     if (!empty(l:composer_path)) | ||||
|         return fnamemodify(l:composer_path, ':h') | ||||
|     endif | ||||
|  | ||||
|     let l:git_path = ale#path#FindNearestDirectory(a:buffer, '.git') | ||||
|  | ||||
|     return !empty(l:git_path) ? fnamemodify(l:git_path, ':h:h') : '' | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Amir Salihefendic
					Amir Salihefendic