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

Spelling and syntax fixes (#3439)

This commit is contained in:
M. Willis Monroe 2020-04-10 14:11:25 +03:00 committed by GitHub
parent b68306354e
commit f68189941d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 20 deletions

View File

@ -65,7 +65,7 @@ function! s:write_to_config(config) abort
let g:_spacevim_global_config_path = global_dir . 'init.toml'
let cf = global_dir . 'init.toml'
if filereadable(cf)
call SpaceVim#logger#warn('Failed to generate config file, It is not readable: ' . cf)
call SpaceVim#logger#warn('Failed to generate config file, it is not readable: ' . cf)
return
endif
let dir = expand(fnamemodify(cf, ':p:h'))
@ -148,7 +148,7 @@ function! SpaceVim#custom#load() abort
call SpaceVim#logger#info('find local conf: ' . local_conf)
let local_conf_cache = s:path_to_fname(local_conf)
if getftime(local_conf) < getftime(local_conf_cache)
call SpaceVim#logger#info('loadding cached local conf: ' . local_conf_cache)
call SpaceVim#logger#info('loading cached local conf: ' . local_conf_cache)
let conf = s:JSON.json_decode(join(readfile(local_conf_cache, ''), ''))
call SpaceVim#custom#apply(conf, 'local')
else
@ -158,7 +158,7 @@ function! SpaceVim#custom#load() abort
call SpaceVim#custom#apply(conf, 'local')
endif
if g:spacevim_force_global_config
call SpaceVim#logger#info('force loadding global config >>>')
call SpaceVim#logger#info('force loading global config >>>')
call s:load_glob_conf()
endif
elseif filereadable('.SpaceVim.d/init.vim')
@ -168,11 +168,11 @@ function! SpaceVim#custom#load() abort
call SpaceVim#logger#info('find local conf: ' . local_conf)
exe 'source .SpaceVim.d/init.vim'
if g:spacevim_force_global_config
call SpaceVim#logger#info('force loadding global config >>>')
call SpaceVim#logger#info('force loading global config >>>')
call s:load_glob_conf()
endif
else
call SpaceVim#logger#info('Can not find project local config, start to loadding global config')
call SpaceVim#logger#info('Can not find project local config, start loading global config')
call s:load_glob_conf()
endif

View File

@ -6,7 +6,7 @@
" License: GPLv3
"=============================================================================
" Loadding SpaceVim api {{{
" Loading SpaceVim api {{{
scriptencoding utf-8
let s:MPT = SpaceVim#api#import('prompt')
let s:JOB = SpaceVim#api#import('job')
@ -31,9 +31,9 @@ let s:options.find = {
\ '-daystart' : 'Measure times from the beginning of today rather than from 24 hours ago.',
\ '-depth' : "Process each directory's contents before the directory itself.",
\ '-exec' : 'Execute command',
\ '-false' : 'make find command return false',
\ '-false' : 'Make find command return false',
\ '-fls' : 'True; like -ls but write to file like -fprint.',
\ '-follow' : 'a diagnostic message is issued when find encounters a loop of symbolic links.',
\ '-follow' : 'A diagnostic message is issued when find encounters a loop of symbolic links.',
\ '-fprint' : 'True; print the full file name into file file.',
\ '-fprintf' : 'True; like -printf but write to file like -fprint.',
\ '-fstype' : 'Only list files or directorys with specific filesysten type',
@ -60,9 +60,9 @@ let s:options.find = {
\ '-ok' : '此参数的效果和指定“-exec”类似但在执行指令之前会先询问用户若回答“y”或“Y”则放弃执行命令',
\ '-path' : '指定字符串作为寻找目录的范本样式',
\ '-perm' : '查找符合指定的权限数值的文件或目录',
\ '-print' : '假设find指令的回传值为Ture就将文件或目录名称列出到标准输出。格式为每列一个名称每个名称前皆有“./”字符串',
\ '-print0' : '假设find指令的回传值为Ture就将文件或目录名称列出到标准输出。格式为全部的名称皆在同一行',
\ '-printf' : '假设find指令的回传值为Ture就将文件或目录名称列出到标准输出。格式可以自行指定',
\ '-print' : '假设find指令的回传值为True就将文件或目录名称列出到标准输出。格式为每列一个名称每个名称前皆有“./”字符串',
\ '-print0' : '假设find指令的回传值为True就将文件或目录名称列出到标准输出。格式为全部的名称皆在同一行',
\ '-printf' : '假设find指令的回传值为True就将文件或目录名称列出到标准输出。格式可以自行指定',
\ '-prune' : '不寻找字符串作为寻找文件或目录的范本样式',
\ '-regex' : '指定字符串作为寻找文件或目录的范本样式',
\ '-size' : '查找符合指定的文件大小的文件',
@ -78,8 +78,8 @@ let s:options.find = {
let s:options.fd = {
\ '-H' : 'Search hidden files and directories',
\ '-I' : 'Do not respect .(git|fd)ignore files',
\ '-s' : 'Case-sensitive serch',
\ '-i' : 'Case-insensitive serch',
\ '-s' : 'Case-sensitive search',
\ '-i' : 'Case-insensitive search',
\ '-t' : 'Filter by type: file (f), directory (d), symlink (l), executable (x), empty (e)',
\ '-g' : 'Glob-based search',
\ '-d' : 'Set maximum search depth (default: none)',

View File

@ -6,7 +6,7 @@
" License: GPLv3
"=============================================================================
" Loadding SpaceVim api {{{
" Loading SpaceVim api {{{
scriptencoding utf-8
let s:MPT = SpaceVim#api#import('prompt')
let s:JOB = SpaceVim#api#import('job')

View File

@ -13,7 +13,7 @@
" s: swoop
" }}}
" Loadding SpaceVim api {{{
" Loading SpaceVim api {{{
let s:VIMH = SpaceVim#api#import('vim#highlight')
let s:STRING = SpaceVim#api#import('data#string')
let s:CMP = SpaceVim#api#import('vim#compatible')

View File

@ -21,7 +21,7 @@ description: "C/C++/Object-C language support for SpaceVim, include code complet
## Install
To use this configuration layer, update custom configuration file with:
To use this configuration layer, update the custom configuration file with:
```toml
[[layers]]
@ -63,7 +63,7 @@ A dict containing the standards you want to use. The default is:
- `clang_flag`
Create a `.clang` file at your project root. You should be able to just paste most of your compile flags in there. You can also use a list ['-Iwhatever', ...] when loadding this layer.
Create a `.clang` file at your project root. You should be able to just paste most of your compile flags in there. You can also use a list ['-Iwhatever', ...] when loading this layer.
Here is an example how to use above options: