-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,572 additions
and
1,205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Commit message check' | ||
on: [push, pull_request] | ||
jobs: | ||
# Taken from https://github.com/marketplace/actions/gs-commit-message-checker | ||
check-commit-message: | ||
name: Commit message nicely formatted | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: gsactions/commit-message-checker@v1 | ||
with: | ||
pattern: '^(:bug: fix|:lipstick: refactor|:green_book: docs|:sparkles: feat|:broom: chore|:wrench: tooling|:rewind: revert|:zap: speed|:tada: release): [^ ]+' | ||
error: 'Messages should be formatted as "<emoji> <type>: <description>"' | ||
excludeDescription: 'true' | ||
excludeTitle: 'true' | ||
checkAllCommitMessages: 'true' | ||
accessToken: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: 'Check line numbers and line width' | ||
on: [push, pull_request] | ||
jobs: | ||
line-number: | ||
name: Sloc < 1000 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: cargo install tokei | ||
- run: num_sloc=$(tokei --type=Lua,'Vim script' --output=json . | jq .Total.code); if [ ${num_sloc} -gt 999 ]; then exit 1; fi | ||
|
||
line-width: | ||
name: Line width < 80 characters | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: cargo install ripgrep | ||
- run: max_line_width=$(rg --glob '*.{lua,vim}' --no-heading --no-filename --no-line-number . | awk '{print length}' | sort -n | tail -n 1); if [ ${max_line_width} -gt 79 ]; then exit 1; fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog], and this project adheres to | ||
[Semantic Versioning]. | ||
|
||
## [Unreleased] | ||
|
||
## [0.1.0] - 2021-12-07 | ||
|
||
### Added | ||
|
||
- Started using Semantic Versioning, added this Changelog. | ||
- Added config option `buffers.filter_valid` | ||
([#29](https://github.com/noib3/cokeline.nvim/issues/29)). | ||
- Highlights defined in `default_hl` can now accept a function taking a | ||
`buffer` as parameter to compute their values, just like the ones in | ||
`components` ([#23](https://github.com/noib3/cokeline.nvim/issues/23)). | ||
- Added GitHub Actions test to make sure no line of code exceeds 79 characters. | ||
|
||
### Changed | ||
|
||
- Renamed config option `cycle_prev_next_mappings` to | ||
`mappings.cycle_next_prev`. | ||
- Renamed config option `buffers.filter` to | ||
`buffers.filter_visible`. | ||
- Renamed config option `rendering.max_line_width` to | ||
`rendering.max_buffer_width`. | ||
- Default value for `mappings.cycle_next_prev` is now `true` instead of | ||
`false`. | ||
- Updated the help file and the `README.md`. | ||
- Rewrote almost the entire plugin in a more functional style. | ||
|
||
### Fixed | ||
|
||
- Fixed an issue where opening multiple buffers at the same time with | ||
`buffers.new_buffers_position = 'next'` would cause them to be displayed in | ||
the opposite order of what they should be | ||
([#22](https://github.com/noib3/cokeline.nvim/issues/22#issuecomment-975955018)). | ||
|
||
### Removed | ||
|
||
- Removed config option `rendering.min_line_width`, which hadn't been | ||
implemented anyway. | ||
|
||
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html | ||
[Keep a changelog]: https://keepachangelog.com/en/1.0.0/ | ||
|
||
[unreleased]: https://github.com/noib3/cokeline.nvim/compare/v0.1.0...HEAD | ||
[0.1.0]: https://github.com/noib3/cokeline.nvim/releases/tag/v0.1.0 |
Oops, something went wrong.