neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

dotnet.vim (1053B)


      1 " Vim compiler file
      2 " Compiler:            dotnet build (.NET CLI)
      3 " Maintainer:          Nick Jensen <nickspoon@gmail.com>
      4 " Last Change:         2022-12-06
      5 "                      2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
      6 " License:             Vim (see :h license)
      7 " Repository:          https://github.com/nickspoons/vim-cs
      8 
      9 if exists("current_compiler")
     10  finish
     11 endif
     12 let current_compiler = "dotnet"
     13 
     14 let s:cpo_save = &cpo
     15 set cpo&vim
     16 
     17 if get(g:, "dotnet_errors_only", v:false)
     18  CompilerSet makeprg=dotnet\ build\ -nologo
     19 	     \\ -consoleloggerparameters:NoSummary
     20 	     \\ -consoleloggerparameters:ErrorsOnly
     21 else
     22  CompilerSet makeprg=dotnet\ build\ -nologo\ -consoleloggerparameters:NoSummary
     23 endif
     24 
     25 if get(g:, "dotnet_show_project_file", v:true)
     26  CompilerSet errorformat=%E%f(%l\\,%c):\ %trror\ %m,
     27 		 \%W%f(%l\\,%c):\ %tarning\ %m,
     28 		 \%-G%.%#
     29 else
     30  CompilerSet errorformat=%E%f(%l\\,%c):\ %trror\ %m\ [%.%#],
     31 		 \%W%f(%l\\,%c):\ %tarning\ %m\ [%.%#],
     32 		 \%-G%.%#
     33 endif
     34 
     35 let &cpo = s:cpo_save
     36 unlet s:cpo_save