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:
@@ -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
5
.config/nvim/stylua.toml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
indent_type = "Spaces"
|
||||||
|
indent_width = 2
|
||||||
|
column_width = 120
|
||||||
|
[sort_requires]
|
||||||
|
enabled = true
|
||||||
Reference in New Issue
Block a user