changeset 405:34862cc22221

Add stylua formatting config
author zegervdv <zegervdv@me.com>
date Fri, 16 Jul 2021 18:31:20 +0200
parents 04483ffbd282
children 270a0f0f4c7f
files .chezmoiignore dot_config/nvim/config.lua stylua.toml
diffstat 3 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.chezmoiignore	Fri Jul 16 09:06:51 2021 +0200
+++ b/.chezmoiignore	Fri Jul 16 18:31:20 2021 +0200
@@ -1,3 +1,4 @@
 README.md
 *.orig
 *.rej
+stylua.toml
--- a/dot_config/nvim/config.lua	Fri Jul 16 09:06:51 2021 +0200
+++ b/dot_config/nvim/config.lua	Fri Jul 16 18:31:20 2021 +0200
@@ -414,6 +414,7 @@
   on_attach = on_attach,
   sources = {
     null_ls.builtins.formatting.black,
+    null_ls.builtins.formatting.stylua,
   },
 }
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stylua.toml	Fri Jul 16 18:31:20 2021 +0200
@@ -0,0 +1,6 @@
+column_width = 120
+line_endings = "Unix"
+indent_type = "Spaces"
+indent_width = 2
+quote_style = "AutoPreferSingle"
+no_call_parentheses = true