Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sortjson.nvim

A NeoVIM plugin that can sort current JSON file by key name.

Screen-2023-07-01-145913.mp4

Usage

-- lazy.nvim
return {
  "2nthony/sortjson.nvim",
  cmd = {
    "SortJSONByAlphaNum",
    "SortJSONByAlphaNumReverse",
    "SortJSONByKeyLength",
    "SortJSONByKeyLengthReverse",
  },
  -- options with default values
  opts = {
    log_level = "WARN", -- log level, see `:h vim.log.levels`, print error info when parsing json failed
  },
}
# Supported commands see `cmd = {}` above
:SortJSONByAlphaNum

License

MIT © 2nthony

About

sort json objects plugin for neovim

Topics

Resources

Stars

20 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from 2nthony/ts-lib-starter