Skip to content

Commit c32703a

Browse files
committed
style: run prettier
1 parent 2d765eb commit c32703a

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
lines changed

.editorconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ root = true
22

33
[*]
44
indent_style = space
5-
indent_size = 4
6-
7-
[*.json]
85
indent_size = 2
6+
7+
[*.lua]
8+
indent_size = 4

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ jobs:
4949
- name: Commit changes
5050
uses: stefanzweifel/git-auto-commit-action@v4
5151
with:
52-
commit_message: 'chore: Auto generate docs'
52+
commit_message: "chore: Auto generate docs"

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Open a pull request to become a collaborator. If you have contributed to
2626

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

3232
---
3333

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

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

337338
## Alternatives
338339

doc/CONTRIBUTING.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@
33
## General
44

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

11-
All are available as null-ls built-ins. Failing to lint and format files will
12-
cause CI failures, which will prevent your PR from getting merged.
7+
1. Lint Lua files with [selene](https://github.com/Kampfkarren/selene)
8+
2. Format Lua files with [StyLua](https://github.com/JohnnyMorganz/StyLua)
9+
3. If you've updated documentation, format Markdown files with
10+
[Prettier](https://github.com/prettier/prettier)
11+
12+
All are available as null-ls built-ins. Failing to lint and format files
13+
will cause CI failures, which will prevent your PR from getting merged.
14+
15+
Optionally, you can install
16+
[Pre-Commit](https://pre-commit.com/index.html#install) hooks by cloning
17+
the project and running `make install-hooks` to locally enforce checks on
18+
commit.
1319

14-
Optionally, you can install
15-
[Pre-Commit](https://pre-commit.com/index.html#install) hooks by cloning the
16-
project and running `make install-hooks` to locally enforce checks on commit.
1720
- Use the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
1821
style for your commits.
1922
- Squash your commits so that one commit represents one complete change.

doc/MAIN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ handle common conditional checks.
213213
- `utils.root_matches`: accepts a Lua string matcher pattern. Returns `true` if
214214
the root matches the specified pattern.
215215

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

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

0 commit comments

Comments
 (0)