mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 03:12:00 +00:00
Problem: runtime(compiler): No compiler plugin for just
Solution: Add a compiler plugin for the just command runner, add a test
(Aditya Malik)
Sets makeprg and a custom errorformat to parse just's multi-line
error output into quickfix entries with file, line, column, and
message. Includes a test.
Reference:
- https://github.com/casey/just
closes: vim/vim#19773
e147b635fc
Co-authored-by: Aditya Malik <adityamalik2833@gmail.com>
24 lines
379 B
VimL
24 lines
379 B
VimL
" Vim compiler file
|
|
" Compiler: Just
|
|
" Maintainer: Alarcritty
|
|
" Last Change: 2026 Mar 20
|
|
|
|
if exists("current_compiler")
|
|
finish
|
|
endif
|
|
let current_compiler = "just"
|
|
|
|
let s:cpo_save = &cpo
|
|
set cpo-=C
|
|
|
|
CompilerSet makeprg=just
|
|
|
|
CompilerSet errorformat=
|
|
\%Eerror:\ %m,
|
|
\%C%\\s%#——▶\ %f:%l:%c,
|
|
\%-C%.%#,
|
|
\%-G%.%#
|
|
|
|
let &cpo = s:cpo_save
|
|
unlet s:cpo_save
|