Commit Graph
9 Commits
Author SHA1 Message Date
McAuley Penney e6fbcd2d25 ci: add vimdoc workflow
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.
2023-06-17 08:47:30 -07:00
McAuley Penney ae4f9b5e82 refactor: make toggle functionality more concise
vim.b.tidy_enabled appears to be redundant
because of M.enabled. This commit removes it.
2023-06-05 17:29:54 -07:00
McAuley Penney 30bd92bb51 refactor: Actually clean up cfg conditionals
• 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
2022-07-18 15:12:14 -07:00
McAuley Penney 889dc71f20 refactor: use default settings in place of conditionals
- 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.
2022-07-15 13:22:41 -07:00
McAuley Penney 3d6f0c7d9f fix: check for opts tbl in is_excluded_ft
• 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
2022-06-12 08:21:21 -07:00
McAuley Penney e60190f0ca feat: add excluded filetypes config opt
• 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
2022-06-12 08:17:37 -07:00
McAuley Penney 9f906a154d docs, refactor: update to new aucmd API
• 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
2022-06-01 15:01:18 -07:00
McAuley Penney 98b6209b31 docs: update README
• update installation string
    • add "About" section
2022-05-27 12:51:16 -07:00
McAuley Penney 1b230b4045 chore:
- update readme
        - mention cfg branch
        - include todo section
        - fix capitalization typos

    - remove initials from source
2022-01-08 10:51:32 -07:00