Skip to content

x/tools/gopls: allow more formatter options #74678

@yzhou216

Description

@yzhou216

Proposal Details

Currently, in the gopls settings, we only have the option to enable gofumpt. It would be nice if gopls allows the user to set a path to a specific formatter program like how nil implements it, where it supports setting a custom formatter in the config by assigning the path of the formatter to "nil"."formatter"."command" as a String. This would enable the ability to use third party formatters such as golines and golangci-lint fmt with gopls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProposalToolProposalIssues describing a requested change to a Go tool or command-line program.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions