27 Commits

Author SHA1 Message Date
jmp
b157a2b511
Merge pull request #11 from loqusion/main
feat: toggle tidy on or off
2023-05-14 15:45:12 -07:00
John Bernard
58543c4034 feat: toggle tidy on or off 2023-05-14 01:51:23 -05:00
jmp
9b15a0eb12
Merge pull request #8 from kmarius/patch-1
Preserve registers when deleting whitespace at EOF
2022-09-17 14:03:20 -07:00
Marius
093c9f0f73
Preserve registers when deleting whitespace at EOF
I wanted to move some code from one file to another, but when I saved the register was overridden with the whitespace.
2022-09-17 20:22:37 +02:00
jmp
4dcb51102e
Merge pull request #6 from greg0ire/patch-1
Use a more realistic example
2022-07-21 06:50:22 -07:00
Grégoire Paris
3dbcbf8b28
Use a more realistic example
Today, I found that this plugin breaks patch files.
2022-07-21 14:46:24 +02: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
jmp
1f1aa06991
Update README.md 2022-05-28 17:21:54 -07:00
McAuley Penney
98b6209b31 docs: update README
• update installation string
    • add "About" section
2022-05-27 12:51:16 -07:00
mp
1b2a6b336d
Update README.md
- update gif, old one was a pain to watch
2022-01-08 10:53:59 -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
McAuley Penney
25715ac21f fix:
- reinit v1
2021-12-20 21:26:33 -07:00
mp
1720fb50d0
Merge pull request #2 from mcauley-penney/cfg
chore, docs:
2021-12-20 18:14:19 -07:00
McAuley Penney
3b95173bc0 chore, docs:
- update section that discusses what the
      script does

    - add a few comments and organize patterns
2021-12-20 18:12:52 -07:00
mp
6d4f83c530
Merge pull request #1 from mcauley-penney/cfg
docs, feat, refactor:
2021-12-20 18:07:14 -07:00
McAuley Penney
13a9db44cb docs, feat, refactor:
- 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
2021-12-20 18:02:52 -07:00
McAuley
78558eb0e9
[docs] update, rename README 2021-11-21 17:44:33 -07:00
McAuleyPenney
4a858add91 [docs,feat]: protect search history and jump list
- add `keepjumps` and `keeppatterns` modifiers to regex commands
    - update readme
2021-10-28 09:11:35 -07:00
McAuleyPenney
9acc5686ce [docs,style]:
- clean readme again
    - change function name from what I had it as in my configs to
      something more fitting for the repo
2021-10-26 01:25:20 -07:00
McAuley
472ce3b347
Update readme.md 2021-10-25 22:41:04 -07:00
McAuleyPenney
ed8d460ff1 [fix]: modify aucmd to properly reference lua module 2021-10-25 22:05:08 -07:00
McAuley
1409b1c761
Update readme.md 2021-10-25 21:54:03 -07:00
McAuleyPenney
2e8256877d [init]: 2021-10-25 21:20:04 -07:00