Skip to content

[pack/lua] Random choice of source formatting pattern on save file #1690

Description

@Tyrn

Checklist

  • I have searched through the AstroNvim documentation
  • I have searched through the existing issues of this project
  • I have searched the existing issues of plugins related to this issue
  • I can replicate the bug with the minimal repro.lua provided below

Neovim version (nvim -v)

NVIM v0.11.4

Operating system/version

EndeavourOS Linux

Terminal/GUI

alacritty

Describe the bug

I use an astrocommunity pack/lua

~/.config/nvim/lua/community.lua:

...
---@type LazySpec
return {
...
	{ import = "astrocommunity.pack.lua" },
...
}

This is all, no modifications ever attempted.

Steps to Reproduce

Unfortunately, I can't supply a way to reproduce the bug. There are two source format styles: one uses two spaces for an indentation, no parentheses for a single argument, etc. Another uses a tab for indentation, function calls always with parentheses for a single argument, etc.

I just cant predict which style will be used for formatting on save file.

Expected behavior

I expect a single Lua formatting style to be used on save file always. A manual choice is preferable.

Screenshots

No response

Additional Context

No response

Minimal configuration

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions