I was using a function that turns list-like tables
into sets to quickly search the filetype_exclude
table. This commit replaces that tool with one
from vim.api and adds error handling to ensure
that filetype_exclude is a list-like table.
Tidy doesn't have any vim documentation. This
commit adds a workflow that automatically creates
a vimdoc from our readme, then commits it back to
the repo.
• in the last commit, I modified how the
configuration is made so that I could get
rid of having to check if configuration
options were present before acting. I
forgot to remove one, so I did it here
• I also removed a reference to an
experimental option that I was considering
• updated readme
- instead of checking for the existence of
an option whenever that option may be
accessed, initialize default settings and
merge them with user-provided settings.
- instead of looping through all excluded
filetypes and comparing them to the current
filetype, create a set from excluded
filetypes and check if the current filetype
is present.
• problem: attempt to index a nil value err
solution: check for opts table before attempting to check if
opts table contains anything else
Should be considered a temporary fix. Validating the incoming
options table should be its own functionality
• Users may now choose to pass a list of filetypes for Tidy
to ignore to the setup function. It is not required and
will be ignored if it does not exist.
Resolves#5
• remove vim source code for implementing tidy's autocommands
and instead use the Lua API from 0.7
• update README with improved explanation and new installation
instructions
Resolves#4
- add user configuration ability
- add two new patterns
- remove empty lines at top of buffer
- condense all multiple empty lines into
one
- update README
- GIFs displaying formatting options
- default config and how to modify
- new packer entry
- credits
- remove vim file and integrate aucmd into lua