Skip to content

Commit

Permalink
replace conform overrides with .stylua.toml 💄
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Nov 13, 2024
1 parent a372b6a commit 4ba21e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .stylua.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
column_width = 120
indent_type = "Spaces"
indent_width = 4
quote_style = "AutoPreferDouble"
5 changes: 0 additions & 5 deletions nvim/lua/plugins/conform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ return {
args = { "format", "--stdout", "$FILENAME", "--indent-size", "4" },
}

-- Override stylua's default indent type
require("conform").formatters.stylua = {
prepend_args = { "--indent-type", "Spaces" },
}

-- Override prettier's default indent type
require("conform").formatters.prettier = {
prepend_args = { "--tab-width", "4" },
Expand Down

0 comments on commit 4ba21e3

Please sign in to comment.