mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-15 15:19:27 +08:00
Compare commits
No commits in common. "ad03e511963d2feb98c52ede70f7fc22fb15ba10" and "13fe60ed2eb95fcb160e895e711bde31f0a74399" have entirely different histories.
ad03e51196
...
13fe60ed2e
0
.ci/detach_plugin.sh
Executable file → Normal file
0
.ci/detach_plugin.sh
Executable file → Normal file
0
.ci/install/linux.sh
Executable file → Normal file
0
.ci/install/linux.sh
Executable file → Normal file
0
.ci/script.sh
Executable file → Normal file
0
.ci/script.sh
Executable file → Normal file
6
.ci/update_mirror.sh
Executable file → Normal file
6
.ci/update_mirror.sh
Executable file → Normal file
@ -7,19 +7,19 @@ usage () {
|
|||||||
push_gitee()
|
push_gitee()
|
||||||
{
|
{
|
||||||
git remote add gitee https://SpaceVimBot:${BOTSECRET}@gitee.com/spacevim/SpaceVim.git
|
git remote add gitee https://SpaceVimBot:${BOTSECRET}@gitee.com/spacevim/SpaceVim.git
|
||||||
git push gitee master
|
git push gitee master -f
|
||||||
}
|
}
|
||||||
|
|
||||||
push_gitlab()
|
push_gitlab()
|
||||||
{
|
{
|
||||||
git remote add gitlab https://SpaceVimBot:${BOTSECRET}@gitlab.com/SpaceVim/SpaceVim.git
|
git remote add gitlab https://SpaceVimBot:${BOTSECRET}@gitlab.com/SpaceVim/SpaceVim.git
|
||||||
git push gitlab master
|
git push gitlab master -f
|
||||||
}
|
}
|
||||||
|
|
||||||
push_coding()
|
push_coding()
|
||||||
{
|
{
|
||||||
git remote add coding https://spacevim%40outlook.com:${CODINGBOTSECRET}@e.coding.net/spacevim/SpaceVim.git
|
git remote add coding https://spacevim%40outlook.com:${CODINGBOTSECRET}@e.coding.net/spacevim/SpaceVim.git
|
||||||
git push coding master
|
git push coding master -f
|
||||||
}
|
}
|
||||||
|
|
||||||
main () {
|
main () {
|
||||||
|
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@ -31,4 +31,4 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: docker/Dockerfile
|
file: docker/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: wsdjeg2/spacevim:latest
|
tags: spacevim/spacevim:latest
|
||||||
|
13
Makefile
13
Makefile
@ -1,19 +1,6 @@
|
|||||||
test: build/vader | build
|
test: build/vader | build
|
||||||
$(VIM_BIN) -Nu test/vimrc $(VIM_Es) -c 'Vader! test/**'
|
$(VIM_BIN) -Nu test/vimrc $(VIM_Es) -c 'Vader! test/**'
|
||||||
|
|
||||||
COVIMERAGE=$(shell command -v covimerage 2>/dev/null || echo build/covimerage/bin/covimerage)
|
|
||||||
|
|
||||||
test_coverage: $(COVIMERAGE) build/vader | build
|
|
||||||
$(COVIMERAGE) run --source after --source syntax --source autoload --source colors --source config --source ftplugin $(VIM_BIN) -Nu test/vimrc $(VIM_Es) -c 'Vader! test/**'
|
|
||||||
|
|
||||||
$(COVIMERAGE):
|
|
||||||
$(COVIMERAGE) run --source after --source syntax --source autoload --source colors --source config --source ftplugin $(VIM_BIN) -Nu test/vimrc $(VIM_Es) -c 'Vader! test/**'
|
|
||||||
|
|
||||||
build/covimerage:
|
|
||||||
virtualenv $@
|
|
||||||
build/covimerage/bin/covimerage: | build/covimerage
|
|
||||||
build/covimerage/bin/pip install covimerage
|
|
||||||
|
|
||||||
build/vader:
|
build/vader:
|
||||||
git clone --depth 1 https://github.com/junegunn/vader.vim.git $@
|
git clone --depth 1 https://github.com/junegunn/vader.vim.git $@
|
||||||
|
|
||||||
|
@ -1749,6 +1749,7 @@ function! s:lazy_end(...) abort
|
|||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! SpaceVim#end() abort
|
||||||
let g:_spacevim_mappings_prefixs['[SPC]'] = {'name' : '+SPC prefix'}
|
let g:_spacevim_mappings_prefixs['[SPC]'] = {'name' : '+SPC prefix'}
|
||||||
let g:_spacevim_mappings_space.t = {'name' : '+Toggles'}
|
let g:_spacevim_mappings_space.t = {'name' : '+Toggles'}
|
||||||
let g:_spacevim_mappings_space.t.h = {'name' : '+Toggles highlight'}
|
let g:_spacevim_mappings_space.t.h = {'name' : '+Toggles highlight'}
|
||||||
@ -1770,8 +1771,6 @@ endfunction
|
|||||||
let g:_spacevim_mappings_space.d = {'name' : '+Debug'}
|
let g:_spacevim_mappings_space.d = {'name' : '+Debug'}
|
||||||
let g:_spacevim_mappings_space.e = {'name' : '+Errors/Encoding'}
|
let g:_spacevim_mappings_space.e = {'name' : '+Errors/Encoding'}
|
||||||
let g:_spacevim_mappings_space.B = {'name' : '+Global buffers'}
|
let g:_spacevim_mappings_space.B = {'name' : '+Global buffers'}
|
||||||
|
|
||||||
function! SpaceVim#end() abort
|
|
||||||
let &tabline = ' '
|
let &tabline = ' '
|
||||||
if has('timers')
|
if has('timers')
|
||||||
call timer_start(g:spacevim_lazy_conf_timeout, function('s:lazy_end'))
|
call timer_start(g:spacevim_lazy_conf_timeout, function('s:lazy_end'))
|
||||||
|
@ -21,9 +21,3 @@ function! SpaceVim#layers#lang#qml#plugins() abort
|
|||||||
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-qml', {'merged' : 0}])
|
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-qml', {'merged' : 0}])
|
||||||
return plugins
|
return plugins
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SpaceVim#layers#lang#qml#health() abort
|
|
||||||
|
|
||||||
return 1
|
|
||||||
|
|
||||||
endfunction
|
|
||||||
|
@ -108,13 +108,7 @@ else
|
|||||||
" saving cache
|
" saving cache
|
||||||
|
|
||||||
function! s:cache() abort
|
function! s:cache() abort
|
||||||
try
|
silent call writefile([s:JSON.json_encode(s:project_config)], s:FILE.unify_path(s:cache_path, ':p'))
|
||||||
let rst = writefile([s:JSON.json_encode(s:project_config)], s:FILE.unify_path(s:cache_path, ':p'))
|
|
||||||
if rst !=# 0
|
|
||||||
call s:LOGGER.info('failed to write cache')
|
|
||||||
endif
|
|
||||||
catch
|
|
||||||
endtry
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:load_cache() abort
|
function! s:load_cache() abort
|
||||||
|
@ -102,13 +102,7 @@ else
|
|||||||
let s:project_cache_path = s:FILE.unify_path(g:spacevim_data_dir, ':p') . 'SpaceVim/projects.json'
|
let s:project_cache_path = s:FILE.unify_path(g:spacevim_data_dir, ':p') . 'SpaceVim/projects.json'
|
||||||
|
|
||||||
function! s:cache() abort
|
function! s:cache() abort
|
||||||
try
|
call writefile([s:JSON.json_encode(s:project_paths)], s:FILE.unify_path(s:project_cache_path, ':p'))
|
||||||
let rst = writefile([s:JSON.json_encode(s:project_paths)], s:FILE.unify_path(s:project_cache_path, ':p'))
|
|
||||||
if rst !=# 0
|
|
||||||
call s:LOGGER.info('failed to write cache')
|
|
||||||
endif
|
|
||||||
catch
|
|
||||||
endtry
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:load_cache() abort
|
function! s:load_cache() abort
|
||||||
|
@ -1,52 +0,0 @@
|
|||||||
--=============================================================================
|
|
||||||
-- update-index --- Git update-index command
|
|
||||||
-- Copyright (c) 2016-2022 Wang Shidong & Contributors
|
|
||||||
-- Author: Wang Shidong < wsdjeg@outlook.com >
|
|
||||||
-- URL: https://spacevim.org
|
|
||||||
-- License: GPLv3
|
|
||||||
--=============================================================================
|
|
||||||
|
|
||||||
local m = {}
|
|
||||||
|
|
||||||
local job = require('spacevim.api.job')
|
|
||||||
local nt = require('spacevim.api.notify')
|
|
||||||
local log = require('git.log')
|
|
||||||
local stddata = {}
|
|
||||||
|
|
||||||
local function on_exit(id, code, single)
|
|
||||||
log.debug('git-update-index exit code:' .. code .. ' single:' .. single)
|
|
||||||
if code == 0 and single == 0 then
|
|
||||||
if vim.fn.exists(':GitGutter') == 2 then
|
|
||||||
vim.cmd('GitGutter')
|
|
||||||
end
|
|
||||||
nt.notify('git update index done!')
|
|
||||||
else
|
|
||||||
nt.notify(table.concat(stddata, '\n'), 'warningmsg')
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local function on_std(id, data)
|
|
||||||
for _, v in ipairs(data) do
|
|
||||||
table.insert(stddata, v)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function m.run(argv)
|
|
||||||
local cmd = { 'git', 'update-index' }
|
|
||||||
for _, v in ipairs(argv) do
|
|
||||||
if v == '%' then
|
|
||||||
table.insert(cmd, vim.fn.expand('%'))
|
|
||||||
else
|
|
||||||
table.insert(cmd, v)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
log.debug('git-update-index cmd:' .. vim.inspect(cmd))
|
|
||||||
stddata = {}
|
|
||||||
job.start(cmd, {
|
|
||||||
on_exit = on_exit,
|
|
||||||
on_stdout = on_std,
|
|
||||||
on_stderr = on_std,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
return m
|
|
@ -29,7 +29,6 @@ local cmds = {
|
|||||||
'rebase',
|
'rebase',
|
||||||
'stash',
|
'stash',
|
||||||
'tag',
|
'tag',
|
||||||
'update-index',
|
|
||||||
}
|
}
|
||||||
local supported_commands = {}
|
local supported_commands = {}
|
||||||
|
|
||||||
|
23
codecov.yml
23
codecov.yml
@ -1,23 +0,0 @@
|
|||||||
comment: off
|
|
||||||
codecov:
|
|
||||||
branch: master
|
|
||||||
coverage:
|
|
||||||
status:
|
|
||||||
patch:
|
|
||||||
default: false
|
|
||||||
project:
|
|
||||||
default: false # disable the default status that measures entire project
|
|
||||||
api: # declare a new status context "api"
|
|
||||||
target: 1% # we always want 35% coverage here
|
|
||||||
paths:
|
|
||||||
- "autoload/SpaceVim/api/" # only include coverage in "autoload/SpaceVim/api/" folder
|
|
||||||
plugins: # declare a new status context "api"
|
|
||||||
target: 15% # we always want 35% coverage here
|
|
||||||
paths:
|
|
||||||
- "autoload/SpaceVim/plugins/" # only include coverage in "autoload/SpaceVim/api/" folder
|
|
||||||
all: # declare a new status context "all"
|
|
||||||
target: 90% # we always want 35% coverage here
|
|
||||||
paths:
|
|
||||||
- "!tests/" # remove all files in "tests/"
|
|
||||||
- "!bundle/" # remove all files in "tests/"
|
|
||||||
|
|
@ -1248,11 +1248,7 @@ function M.remove_section(name)
|
|||||||
vim.g.spacevim_statusline_right = right
|
vim.g.spacevim_statusline_right = right
|
||||||
vim.opt_local.statusline = M.get(1)
|
vim.opt_local.statusline = M.get(1)
|
||||||
end
|
end
|
||||||
function M.health()
|
function M.health() end
|
||||||
|
|
||||||
return true
|
|
||||||
|
|
||||||
end
|
|
||||||
function M.init()
|
function M.init()
|
||||||
local group = vim.api.nvim_create_augroup('spacevim_statusline', { clear = true })
|
local group = vim.api.nvim_create_augroup('spacevim_statusline', { clear = true })
|
||||||
vim.api.nvim_create_autocmd({ 'BufWinEnter', 'WinEnter', 'FileType', 'BufWritePost' }, {
|
vim.api.nvim_create_autocmd({ 'BufWinEnter', 'WinEnter', 'FileType', 'BufWritePost' }, {
|
||||||
|
Loading…
Reference in New Issue
Block a user