2nthony / sortjson.nvim

sort json objects plugin for neovim
MIT License
10 stars 0 forks source link
lua neovim neovim-plugin

sortjson.nvim

NeoVIM plugin port of vscode-sort-json.

https://github.com/2nthony/sortjson.nvim/assets/19513289/5d425e1b-28c5-4c3b-8d42-3e4b4d1dd266

Requirements

Usage

-- lazy.nvim
return {
  "2nthony/sortjson.nvim",
  cmd = {
    "SortJSONByAlphaNum",
    "SortJSONByAlphaNumReverse",
    "SortJSONByKeyLength",
    "SortJSONByKeyLengthReverse",
  },
  config = true,
}
# Supported commands see `cmd = {}` above
:SortJSONByAlphaNum

License

MIT © 2nthony