diff --git a/init.vim b/init.vim index 66a1a99d5..3bed5ce1a 100644 --- a/init.vim +++ b/init.vim @@ -7,3 +7,5 @@ "============================================================================= execute 'source' fnamemodify(expand(''), ':h').'/config/main.vim' + +lua require('spacevim').bootstrap() diff --git a/lua/spacevim.lua b/lua/spacevim.lua new file mode 100644 index 000000000..1d7e25d36 --- /dev/null +++ b/lua/spacevim.lua @@ -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 diff --git a/lua/spacevim/api.lua b/lua/spacevim/api.lua new file mode 100644 index 000000000..058fff80b --- /dev/null +++ b/lua/spacevim/api.lua @@ -0,0 +1,9 @@ +local api = {} + + +function api.import(name) + +end + + +return api diff --git a/lua/spacevim/api/Data/string.lua b/lua/spacevim/api/Data/string.lua new file mode 100644 index 000000000..e69de29bb diff --git a/lua/spacevim/layer.lua b/lua/spacevim/layer.lua new file mode 100644 index 000000000..166298d20 --- /dev/null +++ b/lua/spacevim/layer.lua @@ -0,0 +1,9 @@ +local layer = {} + + +function layer.init() + +end + + +return layer diff --git a/lua/spacevim/opt.lua b/lua/spacevim/opt.lua new file mode 100644 index 000000000..26e170455 --- /dev/null +++ b/lua/spacevim/opt.lua @@ -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