This commit is contained in:
doyle 2022-06-18 01:58:55 +10:00
parent bf66243547
commit 6cfb5a3d7d
2 changed files with 19 additions and 3 deletions

View File

@ -7,6 +7,7 @@ call plug#begin(stdpath('config') . '/plugged')
Plug 'https://github.com/Tetralux/odin.vim'
Plug 'https://github.com/morhetz/gruvbox'
Plug 'https://github.com/neovim/nvim-lspconfig'
Plug 'https://github.com/tpope/vim-dispatch'
call plug#end()
" Setup LSP
@ -42,6 +43,7 @@ set number " Show line numbers
set relativenumber " Show relative line numbers
set shiftwidth=4 " Number of spaces for each autoindent step
set textwidth=80 " On format, format to 80 char long lines
set nohlsearch
" Show EOL type and last modified timestamp, right after the filename
set statusline=%<%F%h%m%r\ [%{&ff}]\ (%{strftime(\"%H:%M\ %d/%m/%Y\",getftime(expand(\"%:p\")))})%=%l,%c%V\ %P
set guifont=JetBrains_Mono:h9,Consolas:h9,InputMonoCondensed:h9
@ -160,3 +162,16 @@ set errorformat+=\\\ %#%s\ :\ error\ %m " MSVC: link.exe,
set errorformat+=\\\ %#%s\ :\ fatal\ error\ %m " MSVC: link.exe, fatal errors is badly implemented
set errorformat+=\\\ %#%f(%l\\\,%c-%*[0-9]):\ %#%t%[A-z]%#\ %m " MSVC: HLSL fxc.exe
set errorformat+=%\\%%(CTIME%\\)%\\@=%m " ctime.exe -stats
" Vim Dispatch
" ==============================================================================
let s:running_windows = has("win16") || has("win32") || has("win64")
if s:running_windows
set makeprg=build
nnoremap <f5> :Make ./build.bat<cr>
else
" Set vim terminal to enter normal mode using escape like normal vim behaviour
tnoremap <Esc> <C-\><C-n>
nnoremap <f5> :Make ./build.sh<cr>
set makeprg=./build.sh
endif

View File

@ -715,6 +715,7 @@ REM ----------------------------------------------------------------------------
REM ctags: C/C++ code annotation generator
REM scanmapset: Bind capslock to escape via registry
REM uncap: Bind capslock to escape via run-time program
call :CopyAndAlwaysOverwriteFile "!installer_dir!\win_clang_merge_compilation_command_files.bat" "!bin_dir!\clang_merge_compilation_command_files.bat" || exit /B
call :CopyAndAlwaysOverwriteFile "!installer_dir!\win_scanmapset.exe" "!bin_dir!\scanmapset.exe" || exit /B
call :CopyAndAlwaysOverwriteFile "!installer_dir!\win_uncap.exe" "!bin_dir!\uncap.exe" || exit /B
call :CopyAndAlwaysOverwriteFile "!installer_dir!\os_clang_format_style_file" "!home_dir!\_clang-format" || exit /B