1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 12:50:04 +08:00
SpaceVim/test/lua/test_toml.lua
2023-08-05 22:31:52 +08:00

56 lines
1.6 KiB
Lua

local toml = require('spacevim.api.data.toml')
print(vim.inspect(toml.parse_file('mode/basic.toml')))
print(vim.inspect(vim.api.nvim_eval("SpaceVim#api#import('data#toml').parse_file('mode/basic.toml')")))
-- {
-- layers = { {
-- auto_completion_return_key_behavior = "complete",
-- auto_completion_tab_key_behavior = "cycle",
-- name = "autocomplete"
-- }, {
-- default_height = 30,
-- default_position = "top",
-- name = "shell"
-- } },
-- options = {
-- buffer_index_type = 4,
-- colorscheme = "gruvbox",
-- colorscheme_bg = "dark",
-- enable_guicolors = false,
-- enable_statusline_mode = false,
-- enable_tabline_filetype_icon = false,
-- statusline_iseparator = "bar",
-- statusline_separator = "nil",
-- statusline_unicode = false,
-- vimcompatible = true,
-- windows_index_type = 3
-- }
-- }
-- {
-- layers = { {
-- auto_completion_return_key_behavior = "complete",
-- auto_completion_tab_key_behavior = "cycle",
-- name = "autocomplete"
-- }, {
-- default_height = 30,
-- default_position = "top",
-- name = "shell"
-- } },
-- options = {
-- buffer_index_type = 4,
-- colorscheme = "gruvbox",
-- colorscheme_bg = "dark",
-- enable_guicolors = 0,
-- enable_statusline_mode = 0,
-- enable_tabline_filetype_icon = 0,
-- statusline_iseparator = "bar",
-- statusline_separator = "nil",
-- statusline_unicode = 0,
-- vimcompatible = 1,
-- windows_index_type = 3
-- }
-- }