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

Add simple lua mode (#2859)

This commit is contained in:
Wang Shidong 2019-05-31 21:45:09 +08:00 committed by GitHub
parent d773bbeb20
commit b14c2d1e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 50 additions and 0 deletions

View File

@ -7,3 +7,5 @@
"=============================================================================
execute 'source' fnamemodify(expand('<sfile>'), ':h').'/config/main.vim'
lua require('spacevim').bootstrap()

16
lua/spacevim.lua Normal file
View File

@ -0,0 +1,16 @@
local spacevim = {}
local options = require('spacevim.opt')
local layers = require('spacevim.layer')
function spacevim.bootstrap()
options.init()
layers.init()
end
return spacevim

9
lua/spacevim/api.lua Normal file
View File

@ -0,0 +1,9 @@
local api = {}
function api.import(name)
end
return api

View File

9
lua/spacevim/layer.lua Normal file
View File

@ -0,0 +1,9 @@
local layer = {}
function layer.init()
end
return layer

14
lua/spacevim/opt.lua Normal file
View File

@ -0,0 +1,14 @@
local options = {}
options._opts = {}
function options.init()
options._opts.version = '1.2.0-dev'
-- Change the default indentation of SpaceVim, default is 2.
options._opts.default_indent = 2
options._opts.expand_tab = true
end
return options