Skip to content
This repository was archived by the owner on Aug 28, 2023. It is now read-only.
/ go-order.nvim Public archive

A Neovim library for formatting Go file contents alphabetically

License

Notifications You must be signed in to change notification settings

td0m/go-order.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 28, 2023
ed6de8a · Feb 28, 2023

History

7 Commits
Feb 27, 2023
Feb 27, 2023
Feb 28, 2023

Repository files navigation

go-order.nvim

Format your Go files alphabetically.

Installation

-- with lazy
{ "td0m/go-order.nvim", opts = {} }

-- with packer
{
  "td0m/go-order.nvim",
  config = function()
    require("go-order").setup()
  end
}

Usage

Open any .go file and run :GoOrder.

Features

  • Sort by declaration type (const, var, type, method, function)
  • Sort functions and methods alphabetically (with public ones first)
  • Sort constants and variables alphabetically
  • Sort struct fields alphabetically

About

A Neovim library for formatting Go file contents alphabetically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages