bug: stylua doesn't respect .styluaignore
file by default after v2.0.0
#615
Labels
bug
Something isn't working
.styluaignore
file by default after v2.0.0
#615
Neovim version (nvim -v)
NVIM v0.10.3 Build type: Release LuaJIT 2.1.1716656478
Operating system/version
Gentoo Linux 2.17
Read debugging tips
Add the debug logs
log_level = vim.log.levels.DEBUG
and pasted the log contents below.Log file
Describe the bug
Since v2.0.0 StyLua adds the
--respect-ignores
flag (PR) and changes the default behaviour of--stdin-filepath
:As result, conform is applying formatting to files in the
.styluaignore
file.What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
repro.lua
nvim -u repro.lua
:SetCase
:w
to write the.styluaignore
file into the cwd<C-w>j
and:w
to write thefoo.lua
file.foo.lua
is being formatted.Expected Behavior
Since
foo.lua
is in the.styluaignore
file, it shouldn't be formatted.Minimal example file
Check the minimal init.lua
SetCase
command.Minimal init.lua
Additional context
To preserve the previous behaviour,
--respect-ignores
should be added in the args of thelua/conform/formatters/stylua.lua
module.Edit: Check the PR #616
The text was updated successfully, but these errors were encountered: