mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 23:49:19 +08:00
Merge branch 'master' of https://github.com/SpaceVim/SpaceVim
This commit is contained in:
commit
9cb30a06c0
@ -3,8 +3,10 @@ let s:system = SpaceVim#api#import('system')
|
||||
|
||||
if s:system.isWindows
|
||||
let s:file['separator'] = '\'
|
||||
let s:file['pathSeparator'] = ';'
|
||||
else
|
||||
let s:file['separator'] = '/'
|
||||
let s:file['pathSeparator'] = ':'
|
||||
endif
|
||||
|
||||
function! SpaceVim#api#file#get() abort
|
||||
|
9
autoload/SpaceVim/layers/debug.vim
Normal file
9
autoload/SpaceVim/layers/debug.vim
Normal file
@ -0,0 +1,9 @@
|
||||
function! SpaceVim#layers#debug#plugins() abort
|
||||
let plugins = []
|
||||
call add(plugins,['idanarye/vim-vebugger', {'merged' : 0}])
|
||||
return plugins
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#debug#config() abort
|
||||
|
||||
endfunction
|
@ -1,6 +1,6 @@
|
||||
function! SpaceVim#layers#lang#swig#plugins() abort
|
||||
let plugins = []
|
||||
call add(plugins, 'SpaceVim/vim-swig')
|
||||
call add(plugins, ['SpaceVim/vim-swig'])
|
||||
return plugins
|
||||
endfunction
|
||||
|
||||
|
@ -1,6 +1,24 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "WebSite",
|
||||
"url": "https://spacevim.org/",
|
||||
"name": "{{ page.title | default: Home }} - SpaceVim",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Shidong Wang"
|
||||
},
|
||||
"description": "{{ site.description }}",
|
||||
"publisher": "Shidong Wang",
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": "https://spacevim.org/?s={search_term}",
|
||||
"query-input": "required name=search_term" }
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
|
@ -2,10 +2,13 @@
|
||||
title: "file api"
|
||||
---
|
||||
|
||||
# [APIs](https://spacevim.org/apis) : file
|
||||
|
||||
## values
|
||||
|
||||
name | values | description
|
||||
----- |:----:| ------------------
|
||||
separator | `/` or `\\` | the separator based on the os
|
||||
separator | `/` or `\` | The system-dependent name-separator character.
|
||||
pathSeparator | `:` or `;` | The system-dependent path-separator character.
|
||||
|
||||
## functions
|
||||
|
@ -2,6 +2,8 @@
|
||||
title: "system api"
|
||||
---
|
||||
|
||||
# [APIs](https://spacevim.org/apis) : system
|
||||
|
||||
## values
|
||||
|
||||
name | values | description
|
||||
|
26
docs/apis.md
26
docs/apis.md
@ -4,9 +4,25 @@ title: "APIs"
|
||||
|
||||
# SpaceVim public APIs:
|
||||
|
||||
SpaceVim provide many public apis, you can use this apis in your plugins. here is the list of all the apis:
|
||||
SpaceVim provide many public apis, you can use this apis in your plugins.
|
||||
|
||||
nanme | description
|
||||
----- | ------------------
|
||||
file |
|
||||
system |
|
||||
## Usage
|
||||
|
||||
```viml
|
||||
|
||||
let s:file = SpaceVim#api#import('file')
|
||||
let s:system = SpaceVim#api#import('system')
|
||||
|
||||
if s:system.isWindows
|
||||
echom "Os is Windows"
|
||||
endif
|
||||
echom s:file.separator
|
||||
echom s:file.pathSeparator
|
||||
```
|
||||
|
||||
here is the list of all the apis, and welcome to contribute to SpaceVim.
|
||||
|
||||
name | description | documentation
|
||||
----- |:----:| -------
|
||||
file | basic api about file and directory | [readme](https://spacevim.org/api/file)
|
||||
system | basic api about system | [readme](https://spacevim.org/api/system)
|
||||
|
Loading…
x
Reference in New Issue
Block a user