Mercurial > vim-unreal
comparison plugin/unreal.vim @ 0:ba03cac1b1c6
Initial commit.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 24 Sep 2020 23:04:57 -0700 |
parents | |
children | 9235d8341a18 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ba03cac1b1c6 |
---|---|
1 " unreal.vim - Work with the Unreal Engine in Vim | |
2 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com> | |
3 | |
4 " Globals {{{ | |
5 | |
6 if !(has('job') || (has('nvim') && exists('*jobwait'))) | |
7 echoerr "unreal: this plugin requires the job API from Vim8 or Neovim." | |
8 finish | |
9 endif | |
10 | |
11 let g:unreal_trace = 0 | |
12 | |
13 let g:unreal_project_dir_marker = get(g:, 'unreal_project_dir_marker', '*.uprojectdirs') | |
14 let g:unreal_project_dir_finder = get(g:, 'unreal_project_dir_finder', '') | |
15 let g:unreal_auto_find_project = get(g:, 'unreal_auto_find_project', 0) | |
16 | |
17 let g:unreal_project_dir = get(g:, 'unreal_project_dir', '') | |
18 let g:unreal_project_platform = get(g:, 'unreal_project_platform', '') | |
19 let g:unreal_project_config = get(g:, 'unreal_project_config', '') | |
20 | |
21 let g:unreal_modules = get(g:, 'unreal_modules', []) | |
22 | |
23 let g:unreal_platforms = get(g:, 'unreal_platforms', [ | |
24 \"Win32", "Win64", "HoloLens", "Mac", "XboxOne", "PS4", "IOS", "Android", | |
25 \"HTML5", "Linux", "AllDesktop", "TVOS", "Switch" | |
26 \]) | |
27 let g:unreal_configurations = get(g:, 'unreal_configurations', [ | |
28 \"Debug", "DebugGame", "Development", "Shipping", "Test" | |
29 \]) | |
30 let g:unreal_build_options = get(g:, 'unreal_build_options', [ | |
31 \"-DisableUnity", "-ForceUnity" | |
32 \]) | |
33 let g:unreal_auto_build_options = get(g:, 'unreal_auto_build_options', [ | |
34 \"-WaitMutex" | |
35 \]) | |
36 | |
37 " }}} | |
38 | |
39 " Commands {{{ | |
40 | |
41 command! UnrealFindProject :call unreal#find_project_dir() | |
42 command! -nargs=1 -complete=dir UnrealSetProject :call unreal#set_project_dir(<f-args>) | |
43 command! -nargs=1 -complete=customlist,unreal#complete_platforms | |
44 \UnrealSetPlatform :call unreal#set_platform(<f-args>) | |
45 command! -nargs=1 -complete=customlist,unreal#complete_config | |
46 \UnrealSetConfig :call unreal#set_config(<f-args>) | |
47 | |
48 command! UnrealGenerateProjectFiles :call unreal#generate_project_files() | |
49 | |
50 command! -nargs=+ -complete=customlist,unreal#complete_build_targets | |
51 \UnrealBuild :call unreal#build(<f-args>) | |
52 command! -nargs=+ -complete=customlist,unreal#complete_build_targets | |
53 \UnrealBuildEditor :call unreal#build_editor(<f-args>) | |
54 | |
55 " }}} | |
56 | |
57 " Initialization {{{ | |
58 | |
59 call unreal#init() | |
60 | |
61 " }}} |