1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:50:05 +08:00

feat(cmake): add :Cmake command

This commit is contained in:
wsdjeg 2022-05-24 23:09:19 +08:00
parent ed30fbf83f
commit aae66a28c0
2 changed files with 16 additions and 0 deletions

View File

@ -20,6 +20,7 @@
function! SpaceVim#layers#lang#cmake#plugins() abort function! SpaceVim#layers#lang#cmake#plugins() abort
let plugins = [] let plugins = []
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-cmake-syntax', { 'merged' : 0}]) call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-cmake-syntax', { 'merged' : 0}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-cmake', { 'merged' : 0}])
return plugins return plugins
endfunction endfunction

View File

@ -0,0 +1,15 @@
"=============================================================================
" cmake.vim --- cmake plugin
" Copyright (c) 2016-2019 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
command! -nargs=* Cmake call cmake#run(<q-args>)
function! cmake#run(str) abort
call SpaceVim#plugins#runner#open('cmake ' . a:str)
endfunction