Closed tris203 closed 5 months ago
Try invoking the stylus CLI manually and see if the behavior changes.
It does. From the stylua CLI it works correctly
Seems like I'm getting the same thing. @tris203 does formatting the first time after opening work? The first time after I open neovim the format always works. After that first one it doesn't work at all and I get the same no generators available
log errors until I restart neovim.
Running the stylua CLI outside of neovim works every time.
I'm on neovim 0.9.5.
Seems like I'm getting the same thing. @tris203 does formatting the first time after opening work? The first time after I open neovim the format always works. After that first one it doesn't work at all and I get the same
no generators available
log errors until I restart neovim.Running the stylua CLI outside of neovim works every time.
I'm on neovim 0.9.5.
I don't think any of them work for me
Additionally, if I use the CLI to format it. None-ls will then reformat it to be wrong
Could anyone reproduce this on older Neovim releases?
Could anyone reproduce this on older Neovim releases?
I need to test again. But I wasn't having issues the other day in nightly. So it's possible this was an upstream nightly bug which has been resolved
I'm not sure if this is the right issue, but I thought I'd put this here before opening a new one. Let me know if you'd rather have me open a new one:
Formatting with stylua doesn't seem to be respecting stylua.toml
, .stylua.toml
or .styluaignore
on the cwd
where nvim
was run. I've tried on two different projects, each with different .stylua.toml
files, one with .styluaignore
on them. Regardless of what's on the stylua.toml
on cwd
, buffer is formatted the same, and it is formatted even if it's on the local .styluaignore
(I'm even passing --respect-ignores
as an extra_args
). Hadn't tried with config files before, but formatting with stylua via conform.nvim
(which I was using before configuring stylua with null-ls
) was respecting the local .styluaignore
. Could it be something to do with how the command is being called?
Let me know what extra info I can get for you.
I'm pretty sure this was an upstream issue which has been fixed now
Closing
FAQ
Issues
Neovim Version
0.10.0-dev
Dev Version?
Operating System
Ubuntu
Minimal Config
Steps to Reproduce
Attempt to format this code
the if statement indenting on line 7 is missing a tab
Reproducibility Check
minimal_init.lua
template and that my issue is reproducible by runningnvim --clean -u minimal_init.lua
and following the steps above.Expected Behavior
to be formatted
Actual Behavior
Formatted
Debug Log
Help
Yes
Implementation Help
I am not sure if this is a none-ls bug, or a upstream nvim bug to do with writing the text back into the buffer
Requirements