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:
parent
ed30fbf83f
commit
aae66a28c0
@ -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
|
||||||
|
|
||||||
|
15
bundle/vim-cmake/plugin/cmake.vim
Normal file
15
bundle/vim-cmake/plugin/cmake.vim
Normal 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
|
Loading…
Reference in New Issue
Block a user