diff --git a/.stylua.toml b/.stylua.toml new file mode 100644 index 0000000..742984d --- /dev/null +++ b/.stylua.toml @@ -0,0 +1,5 @@ +column_width = 88 +line_endings = "Unix" +indent_type = "Spaces" +indent_width = 4 +quote_style = "AutoPreferSingle" diff --git a/garden.yaml b/garden.yaml index d1b943b..6ac4cb4 100644 --- a/garden.yaml +++ b/garden.yaml @@ -36,20 +36,13 @@ trees: doc/post: | sed -i -e 's/Generated by panvimdoc.*//' doc/${TREE_NAME}.txt nvim +'helptags doc | exit' - fmt: | - stylua \ - --call-parentheses Always \ - --column-width 88 \ - --indent-type Spaces \ - --quote-style AutoPreferSingle \ - "$@" \ - lua/*/*.lua + fmt: stylua "$@" lua/*/*.lua setup: | garden -vv grow panvimdoc - garden -vv setup panvimdoc + garden -vv deps panvimdoc panvimdoc: description: Generate vimdoc documentation from pandoc markdown url: https://github.com/kdheepak/panvimdoc.git commands: - setup: sudo apt install pandoc + deps: sudo apt install pandoc