configure stylua

Sun, 05 Mar 2023 18:40:03 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 05 Mar 2023 18:40:03 -0600
changeset 1063
2763a54b0410
parent 1062
77bf3b44f6f9
child 1064
fcfa295076a8

configure stylua

.config/nvim/after/ftplugin/lua.vim file | annotate | diff | comparison | revisions
.config/stylua.toml file | annotate | diff | comparison | revisions
.config/stylua/stylua.toml file | annotate | diff | comparison | revisions
--- a/.config/nvim/after/ftplugin/lua.vim
+++ b/.config/nvim/after/ftplugin/lua.vim
@@ -1,1 +1,5 @@
 setl et sw=2
+
+if executable("stylua")
+  setl equalprg=stylua\ -s\ -
+endif
new file mode 100644
--- /dev/null
+++ b/.config/stylua.toml
@@ -0,0 +1,2 @@
+indent_type = "Spaces"
+indent_width = 2
new file mode 100644
--- /dev/null
+++ b/.config/stylua/stylua.toml
@@ -0,0 +1,2 @@
+indent_type = "Spaces"
+indent_width = 2

mercurial