Skip to content

Commit

Permalink
style: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mochaaP committed Jan 11, 2024
1 parent 2d765eb commit c32703a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ root = true

[*]
indent_style = space
indent_size = 4

[*.json]
indent_size = 2

[*.lua]
indent_size = 4
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ jobs:
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore: Auto generate docs'
commit_message: "chore: Auto generate docs"
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Open a pull request to become a collaborator. If you have contributed to

If you want to make changes, open a new a pull request. Find another
collaborator to review your changes, as a review is required for the PR to be
merged by yourself (subject to change if there are more collaborators in
the future).
merged by yourself (subject to change if there are more collaborators in the
future).

---

Expand Down Expand Up @@ -332,7 +332,8 @@ If you run into plenary-related issues while running the tests, make sure you
have an up-to-date version of the plugin by clearing that cache with:
`make clean`.

All tests expect to run on the latest release version of Neovim and are not guaranteed to work on versions built from `HEAD`.
All tests expect to run on the latest release version of Neovim and are not
guaranteed to work on versions built from `HEAD`.

## Alternatives

Expand Down
21 changes: 12 additions & 9 deletions doc/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@
## General

- Before committing, please go through the following steps:
1. Lint Lua files with [selene](https://github.com/Kampfkarren/selene)
2. Format Lua files with [StyLua](https://github.com/JohnnyMorganz/StyLua)
3. If you've updated documentation, format Markdown files with
[Prettier](https://github.com/prettier/prettier)

All are available as null-ls built-ins. Failing to lint and format files will
cause CI failures, which will prevent your PR from getting merged.
1. Lint Lua files with [selene](https://github.com/Kampfkarren/selene)
2. Format Lua files with [StyLua](https://github.com/JohnnyMorganz/StyLua)
3. If you've updated documentation, format Markdown files with
[Prettier](https://github.com/prettier/prettier)

All are available as null-ls built-ins. Failing to lint and format files
will cause CI failures, which will prevent your PR from getting merged.

Optionally, you can install
[Pre-Commit](https://pre-commit.com/index.html#install) hooks by cloning
the project and running `make install-hooks` to locally enforce checks on
commit.

Optionally, you can install
[Pre-Commit](https://pre-commit.com/index.html#install) hooks by cloning the
project and running `make install-hooks` to locally enforce checks on commit.
- Use the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
style for your commits.
- Squash your commits so that one commit represents one complete change.
Expand Down
4 changes: 2 additions & 2 deletions doc/MAIN.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ handle common conditional checks.
- `utils.root_matches`: accepts a Lua string matcher pattern. Returns `true` if
the root matches the specified pattern.

- `utils.root_has_file_matches`: accepts a Lua string matcher pattern. Returns `true` if
a file matches the specified pattern.
- `utils.root_has_file_matches`: accepts a Lua string matcher pattern. Returns
`true` if a file matches the specified pattern.

On registration, null-ls will store conditional sources in state and check
`condition` at the first opportunity (typically upon entering a named buffer).
Expand Down

0 comments on commit c32703a

Please sign in to comment.