Skip to content

[Feature] toggle format HTTPVersion append  #840

@rokbot

Description

@rokbot

Is your feature request related to a problem? Please describe.
I'm always frustrated when i save a .http file and kuala auto formats writing the HTTPVersion which is optional https://neovim.getkulala.net/docs/usage/http-file-spec/

Describe the solution you'd like
i want to set this behavior in config like

  opts = {
    lsp = {
      formatter = {
        http_version = false, -- Disables the optional HTTPVersion append 
      },
    },
  },

Additional context
Current behavior always appends HTTP/1.1
Expected behavior optionally append the HTTPVersion when is true (default) it appends, but when is false do nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions