Skip to content

Autoformat lua_ls & stylua discrepancies. #594

@zwergius

Description

@zwergius

Describe the bug

I recently forked the project and have been adding my personal touches and enabled require 'kickstart.plugins.autoformat'

This made it impossible for me to commit my changes as the "Check Lua Formatting" workflow would fail.

This is due to all Lua files being formatted with lua_ls rather than stylua.

I thought this was a bit inconvenient.

To Reproduce

  1. Fork & clone the repo
  2. Enable require 'kickstart.plugins.autoformat'
  3. Make a change in init.lua and save (Should now be auto formatted with lua_ls)
  4. Commit and push changes, see that workflow fails.

Desktop

  • OS: MAC
  • Terminal: Alacritty

Neovim Version

:version
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1703358377

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