mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:4fa2dd2: runtime(compiler): add comment for Dispatch (#32856)
closes: vim/vim#16854
4fa2dd2405
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
			
			
This commit is contained in:
		| @@ -21,6 +21,7 @@ if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) || | |||||||
|         \ . (get(b:, 'context_synctex', get(g:, 'context_synctex', 0)) ? '1' : '0') |         \ . (get(b:, 'context_synctex', get(g:, 'context_synctex', 0)) ? '1' : '0') | ||||||
|         \ . ' ' . get(b:, 'context_extra_options', get(g:, 'context_extra_options', '')) |         \ . ' ' . get(b:, 'context_extra_options', get(g:, 'context_extra_options', '')) | ||||||
|         \ . ' ' . shellescape(expand('%:p:t')) |         \ . ' ' . shellescape(expand('%:p:t')) | ||||||
|  |   " CompilerSet makeprg=context | ||||||
|   execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' ') |   execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' ') | ||||||
| else | else | ||||||
|   let current_compiler = 'make' |   let current_compiler = 'make' | ||||||
|   | |||||||
| @@ -2,6 +2,7 @@ | |||||||
| " Compiler:	Java Development Kit Compiler | " Compiler:	Java Development Kit Compiler | ||||||
| " Maintainer:	Doug Kearns <dougkearns@gmail.com> | " Maintainer:	Doug Kearns <dougkearns@gmail.com> | ||||||
| " Last Change:	2024 Nov 19 (enable local javac_makeprg_params) | " Last Change:	2024 Nov 19 (enable local javac_makeprg_params) | ||||||
|  | " 		2025 Mar 11 (add comment for Dispatch) | ||||||
|  |  | ||||||
| if exists("current_compiler") | if exists("current_compiler") | ||||||
|   finish |   finish | ||||||
| @@ -11,6 +12,7 @@ let current_compiler = "javac" | |||||||
| let s:cpo_save = &cpo | let s:cpo_save = &cpo | ||||||
| set cpo&vim | set cpo&vim | ||||||
|  |  | ||||||
|  | " CompilerSet makeprg=javac | ||||||
| execute $'CompilerSet makeprg=javac\ {escape(get(b:, 'javac_makeprg_params', get(g:, 'javac_makeprg_params', '')), ' \|"')}' | execute $'CompilerSet makeprg=javac\ {escape(get(b:, 'javac_makeprg_params', get(g:, 'javac_makeprg_params', '')), ' \|"')}' | ||||||
|  |  | ||||||
| CompilerSet errorformat=%E%f:%l:\ error:\ %m, | CompilerSet errorformat=%E%f:%l:\ error:\ %m, | ||||||
|   | |||||||
| @@ -6,6 +6,7 @@ | |||||||
| "		2024 Apr 03 by the Vim Project (removed :CompilerSet definition) | "		2024 Apr 03 by the Vim Project (removed :CompilerSet definition) | ||||||
| "		2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg) | "		2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg) | ||||||
| "		2024 Nov 19 by the Vim Project (properly escape makeprg setting) | "		2024 Nov 19 by the Vim Project (properly escape makeprg setting) | ||||||
|  | "		2025 Mar 11 by the Vim Project (add comment for Dispatch) | ||||||
|  |  | ||||||
| if exists("current_compiler") | if exists("current_compiler") | ||||||
|   finish |   finish | ||||||
| @@ -50,6 +51,8 @@ let s:makeprg = g:ps1_makeprg_cmd .. ' %:p:S' | |||||||
| "         + CategoryInfo          : ObjectNotFound: (Write-Ouput:String) [], CommandNotFoundException | "         + CategoryInfo          : ObjectNotFound: (Write-Ouput:String) [], CommandNotFoundException | ||||||
| "         + FullyQualifiedErrorId : CommandNotFoundException | "         + FullyQualifiedErrorId : CommandNotFoundException | ||||||
|  |  | ||||||
|  | " CompilerSet makeprg=pwsh | ||||||
|  | " CompilerSet makeprg=powershell | ||||||
| execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' \|"') | execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' \|"') | ||||||
|  |  | ||||||
| " Showing error in context with underlining. | " Showing error in context with underlining. | ||||||
|   | |||||||
| @@ -6,6 +6,7 @@ | |||||||
| "		2024 Apr 03 by the Vim Project (removed :CompilerSet definition) | "		2024 Apr 03 by the Vim Project (removed :CompilerSet definition) | ||||||
| "		2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg) | "		2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg) | ||||||
| "		2024 Nov 19 by the Vim Project (properly escape makeprg setting) | "		2024 Nov 19 by the Vim Project (properly escape makeprg setting) | ||||||
|  | "		2025 Mar 11 by the Vim Project (add comment for Dispatch) | ||||||
|  |  | ||||||
| if exists("current_compiler") | if exists("current_compiler") | ||||||
| 	finish | 	finish | ||||||
| @@ -28,6 +29,7 @@ if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') || | |||||||
| 		let current_compiler = "latex" | 		let current_compiler = "latex" | ||||||
| 	endif | 	endif | ||||||
| 	let s:makeprg=current_compiler .. ' -interaction=nonstopmode' | 	let s:makeprg=current_compiler .. ' -interaction=nonstopmode' | ||||||
|  | 	" CompilerSet makeprg=latex | ||||||
| 	execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' \|"') | 	execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' \|"') | ||||||
| else | else | ||||||
| 	let current_compiler = 'make' | 	let current_compiler = 'make' | ||||||
|   | |||||||
| @@ -2,8 +2,9 @@ | |||||||
| " Language:    Typst | " Language:    Typst | ||||||
| " Previous Maintainer:  Gregory Anders | " Previous Maintainer:  Gregory Anders | ||||||
| " Maintainer:  Luca Saccarola <github.e41mv@aleeas.com> | " Maintainer:  Luca Saccarola <github.e41mv@aleeas.com> | ||||||
|  | " Based On:    https://github.com/kaarmu/typst.vim | ||||||
| " Last Change: 2024 Dec 09 | " Last Change: 2024 Dec 09 | ||||||
| " Based on:    https://github.com/kaarmu/typst.vim | " 2025 Mar 11 by the Vim Project (add comment for Dispatch) | ||||||
|  |  | ||||||
| if exists('current_compiler') | if exists('current_compiler') | ||||||
|     finish |     finish | ||||||
| @@ -13,4 +14,5 @@ let current_compiler = get(g:, 'typst_cmd', 'typst') | |||||||
| " With `--diagnostic-format` we can use the default errorformat | " With `--diagnostic-format` we can use the default errorformat | ||||||
| let s:makeprg = [current_compiler, 'compile', '--diagnostic-format', 'short', '%:S'] | let s:makeprg = [current_compiler, 'compile', '--diagnostic-format', 'short', '%:S'] | ||||||
|  |  | ||||||
|  | " CompilerSet makeprg=typst | ||||||
| execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ') | execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 zeertzjq
					zeertzjq