1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 17:00:26 +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 {
"stevearc/conform.nvim",
opts = {
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
sh = { "shfmt" },
bash = { "shfmt" },
lua = { "stylua" },
fish = { "fish_indent" },
},
},
formatters_by_ft = {
sh = { "shfmt" },
bash = { "shfmt" },
lua = { "stylua" },
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