Skip to content

Commit

Permalink
fix(stylua): Add --respect-ignores to the default args (#616)
Browse files Browse the repository at this point in the history
* fix: Add `--respect-ignores` to the stylua command

* fix typo (remove extra spaces)
  • Loading branch information
polirritmico authored Jan 3, 2025
1 parent 9941f10 commit 7001912
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/conform/formatters/stylua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ return {
description = "An opinionated code formatter for Lua.",
},
command = "stylua",
args = { "--search-parent-directories", "--stdin-filepath", "$FILENAME", "-" },
args = {
"--search-parent-directories",
"--respect-ignores",
"--stdin-filepath",
"$FILENAME",
"-",
},
range_args = function(self, ctx)
local start_offset, end_offset = util.get_offsets_from_range(ctx.buf, ctx.range)
return {
Expand Down

0 comments on commit 7001912

Please sign in to comment.