mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 23:49:19 +08:00
commit
eadaf62aa6
@ -224,28 +224,6 @@ function! SpaceVim#loadCustomConfig() abort
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
""
|
|
||||||
" @section Layers, layers
|
|
||||||
" SpaceVim support such layers:
|
|
||||||
"
|
|
||||||
" core : core plugins for SpaceVim.
|
|
||||||
"
|
|
||||||
" autocompletion : Plugins for autocompletion,
|
|
||||||
"
|
|
||||||
" maker : syntax checker
|
|
||||||
"
|
|
||||||
" unite : unite centric work-flow
|
|
||||||
"
|
|
||||||
" lang#java : java autocompletion and syntax checker
|
|
||||||
|
|
||||||
|
|
||||||
""
|
|
||||||
" Load the {layer} you want, for more info see `:h SpaceVim-layers`.
|
|
||||||
function! SpaceVim#Layer(layer) abort
|
|
||||||
if index(g:spacevim_plugin_groups, a:layer) == -1
|
|
||||||
call add(g:spacevim_plugin_groups, a:layer)
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! SpaceVim#end() abort
|
function! SpaceVim#end() abort
|
||||||
if !empty(g:spacevim_windows_leader)
|
if !empty(g:spacevim_windows_leader)
|
||||||
|
12
autoload/SpaceVim/layers.vim
Normal file
12
autoload/SpaceVim/layers.vim
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
""
|
||||||
|
" @section Layers, layers
|
||||||
|
" SpaceVim support such layers:
|
||||||
|
|
||||||
|
|
||||||
|
""
|
||||||
|
" Load the {layer} you want, for all the layers SpaceVim supported, see @section(layers).
|
||||||
|
function! SpaceVim#layers#load(layer) abort
|
||||||
|
if index(g:spacevim_plugin_groups, a:layer) == -1
|
||||||
|
call add(g:spacevim_plugin_groups, a:layer)
|
||||||
|
endif
|
||||||
|
endfunction
|
21
autoload/SpaceVim/layers/lang/c.vim
Normal file
21
autoload/SpaceVim/layers/lang/c.vim
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
" lang#c :
|
||||||
|
"
|
||||||
|
" this layer provide c family language code completion.
|
||||||
|
"
|
||||||
|
" requirement:
|
||||||
|
" clang
|
||||||
|
" libclang
|
||||||
|
|
||||||
|
function! SpaceVim#layers#lang#c#plugins() abort
|
||||||
|
let plugins = []
|
||||||
|
if has('nvim')
|
||||||
|
call add(plugins, ['tweekmonster/deoplete-clang2'])
|
||||||
|
else
|
||||||
|
call add(plugins, ['Rip-Rip/clang_complete'])
|
||||||
|
endif
|
||||||
|
return plugins
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! SpaceVim#layers#lang#c#config() abort
|
||||||
|
|
||||||
|
endfunction
|
@ -1,3 +1,16 @@
|
|||||||
|
" lang#php :
|
||||||
|
" this layer is for php development, and it provide auto codo completion,
|
||||||
|
" and syntax check, and jump to the definition location.
|
||||||
|
"
|
||||||
|
" requirement:
|
||||||
|
" PHP 5.3+
|
||||||
|
" PCNTL Extension
|
||||||
|
" Msgpack 0.5.7+(for NeoVim) Extension or JSON(for Vim 7.4+) Extension
|
||||||
|
" Composer Project
|
||||||
|
"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function! SpaceVim#layers#lang#php#plugins() abort
|
function! SpaceVim#layers#lang#php#plugins() abort
|
||||||
let plugins = []
|
let plugins = []
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
|
4
config/plugins/deoplete-clang.vim
Normal file
4
config/plugins/deoplete-clang.vim
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
let g:deoplete#sources#clang#libclang_path =
|
||||||
|
\ get(g:, 'deoplete#sources#clang#libclang_path', '/usr/lib/libclang.so')
|
||||||
|
let g:deoplete#sources#clang#clang_header =
|
||||||
|
\ get(g:, 'deoplete#sources#clang#clang_header', '/usr/lib/clang/')
|
@ -17,7 +17,9 @@ let g:deoplete#omni_patterns = get(g:, 'deoplete#omni_patterns', {})
|
|||||||
let g:deoplete#omni_patterns.php = '->\|::'
|
let g:deoplete#omni_patterns.php = '->\|::'
|
||||||
let g:deoplete#ignore_sources = {}
|
let g:deoplete#ignore_sources = {}
|
||||||
let g:deoplete#ignore_sources.go = ['omni']
|
let g:deoplete#ignore_sources.go = ['omni']
|
||||||
|
let g:deoplete#ignore_sources.c = ['omni']
|
||||||
call deoplete#custom#set('go', 'mark', '')
|
call deoplete#custom#set('go', 'mark', '')
|
||||||
|
call deoplete#custom#set('clang2', 'mark', '')
|
||||||
if g:spacevim_enable_javacomplete2_py
|
if g:spacevim_enable_javacomplete2_py
|
||||||
let g:deoplete#ignore_sources.java = ['omni']
|
let g:deoplete#ignore_sources.java = ['omni']
|
||||||
call deoplete#custom#set('javacomplete2', 'mark', '')
|
call deoplete#custom#set('javacomplete2', 'mark', '')
|
||||||
|
@ -181,8 +181,9 @@ twitter.
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
FUNCTIONS *SpaceVim-functions*
|
FUNCTIONS *SpaceVim-functions*
|
||||||
|
|
||||||
SpaceVim#Layer({layer}) *SpaceVim#Layer()*
|
SpaceVim#layers#load({layer}) *SpaceVim#layers#load()*
|
||||||
Load the {layer} you want, for more info see `:h SpaceVim-layers`.
|
Load the {layer} you want, for all the layers SpaceVim supported, see
|
||||||
|
|SpaceVim-layers|.
|
||||||
|
|
||||||
SpaceVim#logger#setLevel({level}) *SpaceVim#logger#setLevel()*
|
SpaceVim#logger#setLevel({level}) *SpaceVim#logger#setLevel()*
|
||||||
Set debug level of SpaceVim, by default it is 1. all message will be logged.
|
Set debug level of SpaceVim, by default it is 1. all message will be logged.
|
||||||
@ -202,15 +203,5 @@ LAYERS *SpaceVim-layers*
|
|||||||
|
|
||||||
SpaceVim support such layers:
|
SpaceVim support such layers:
|
||||||
|
|
||||||
core : core plugins for SpaceVim.
|
|
||||||
|
|
||||||
autocompletion : Plugins for autocompletion,
|
|
||||||
|
|
||||||
maker : syntax checker
|
|
||||||
|
|
||||||
unite : unite centric work-flow
|
|
||||||
|
|
||||||
lang#java : java autocompletion and syntax checker
|
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:ft=help:norl:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user