Back to Spacevim

data#toml API

docs/api/data/toml.md

2.4.0555 B
Original Source

Available APIs >> data#toml

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Intro

data#toml API provides some functions to manipulate a toml. Here is an example for using this api:

vim
let s:TOML = SpaceVim#api#import('data#toml')
let json = s:TOML.parse_file('~/.SpaceVim.d/init.toml')

functions

namedescription
parse(str)parse content
parse_file(path)parse a toml file