Skip to content

stylua lsp error: error: Found argument '--lsp' which wasn't expected, or isn't valid in this context #1752

@ChillerDragon

Description

@ChillerDragon
git clone [email protected]:nvim-lua/kickstart.nvim.git ~/.config/nvim
nvim ~/.config/nvim/init.lua
cat ~/.local/state/nvim/lsp.log
[START][2025-10-25 11:15:47] LSP logging initiated
[ERROR][2025-10-25 11:15:47] ...p/_transport.lua:36     "rpc"   "stylua"        "stderr"        "error: Found argument '--lsp' which wasn't expected, or isn't valid in this context\n\n\tIf you tried to supply `--lsp` as a value rather than a flag, use `-- --lsp`\n\nUSAGE:\n    stylua [OPTIONS] [FILES]...\n\nFor more information try --help\n"
$ uname -a
Linux debian 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux
$ stylua --version
stylua 2.3.0
$ type -a stylua 
stylua is /home/chiller/.cargo/bin/stylua
$ nvim --version
NVIM v0.11.1
Build type: RelWithDebInfo
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info

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