1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 05:40:25 +01:00

stylua config for neovim config files

This commit is contained in:
2026-01-26 17:07:07 +01:00
parent 23c8c64f48
commit 6c496fd2c0
2 changed files with 14 additions and 9 deletions

View File

@@ -1,12 +1,12 @@
return { return {
"stevearc/conform.nvim", "stevearc/conform.nvim",
opts = { opts = {
formatters_by_ft = { formatters_by_ft = {
sh = { "shfmt" }, sh = { "shfmt" },
bash = { "shfmt" }, bash = { "shfmt" },
lua = { "stylua" }, lua = { "stylua" },
fish = { "fish_indent" }, fish = { "fish_indent" },
}, },
}, },
} }

5
.config/nvim/stylua.toml Normal file
View File

@@ -0,0 +1,5 @@
indent_type = "Spaces"
indent_width = 2
column_width = 120
[sort_requires]
enabled = true