Skip to content

wsdjeg/toml.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toml.nvim

toml parser api forked from SpaceVim's toml api

Installation

Using nvim-plug:

require('plug').add({
    {
        'wsdjeg/toml.nvim',
    },
})

Using luarocks

luarocks install toml.nvim

Usage

local toml = require('toml')

local obj = toml.parse_file('.stylua.toml')

vim.print(obj)
-- the output should be:
-- {
--   call_parentheses = "Always",
--   column_width = 100,
--   indent_type = "Spaces",
--   indent_width = 2,
--   line_endings = "Unix",
--   quote_style = "AutoPreferSingle"
-- }
-- or

About

toml parser for neovim

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors

Languages