Skip to content

Commit 9fd956f

Browse files
committed
🎉 release: v0.1.0
1 parent d8de59a commit 9fd956f

18 files changed

+1572
-1205
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Commit message check'
2+
on: [push, pull_request]
3+
jobs:
4+
# Taken from https://github.com/marketplace/actions/gs-commit-message-checker
5+
check-commit-message:
6+
name: Commit message nicely formatted
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: gsactions/commit-message-checker@v1
10+
with:
11+
pattern: '^(:bug: fix|:lipstick: refactor|:green_book: docs|:sparkles: feat|:broom: chore|:wrench: tooling|:rewind: revert|:zap: speed|:tada: release): [^ ]+'
12+
error: 'Messages should be formatted as "<emoji> <type>: <description>"'
13+
excludeDescription: 'true'
14+
excludeTitle: 'true'
15+
checkAllCommitMessages: 'true'
16+
accessToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lines.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Check line numbers and line width'
2+
on: [push, pull_request]
3+
jobs:
4+
line-number:
5+
name: Sloc < 1000
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- run: cargo install tokei
10+
- run: num_sloc=$(tokei --type=Lua,'Vim script' --output=json . | jq .Total.code); if [ ${num_sloc} -gt 999 ]; then exit 1; fi
11+
12+
line-width:
13+
name: Line width < 80 characters
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- run: cargo install ripgrep
18+
- 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

.github/workflows/main.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog], and this project adheres to
6+
[Semantic Versioning].
7+
8+
## [Unreleased]
9+
10+
## [0.1.0] - 2021-12-07
11+
12+
### Added
13+
14+
- Started using Semantic Versioning, added this Changelog.
15+
- Added config option `buffers.filter_valid`
16+
([#29](https://github.com/noib3/cokeline.nvim/issues/29)).
17+
- Highlights defined in `default_hl` can now accept a function taking a
18+
`buffer` as parameter to compute their values, just like the ones in
19+
`components` ([#23](https://github.com/noib3/cokeline.nvim/issues/23)).
20+
- Added GitHub Actions test to make sure no line of code exceeds 79 characters.
21+
22+
### Changed
23+
24+
- Renamed config option `cycle_prev_next_mappings` to
25+
`mappings.cycle_next_prev`.
26+
- Renamed config option `buffers.filter` to
27+
`buffers.filter_visible`.
28+
- Renamed config option `rendering.max_line_width` to
29+
`rendering.max_buffer_width`.
30+
- Default value for `mappings.cycle_next_prev` is now `true` instead of
31+
`false`.
32+
- Updated the help file and the `README.md`.
33+
- Rewrote almost the entire plugin in a more functional style.
34+
35+
### Fixed
36+
37+
- Fixed an issue where opening multiple buffers at the same time with
38+
`buffers.new_buffers_position = 'next'` would cause them to be displayed in
39+
the opposite order of what they should be
40+
([#22](https://github.com/noib3/cokeline.nvim/issues/22#issuecomment-975955018)).
41+
42+
### Removed
43+
44+
- Removed config option `rendering.min_line_width`, which hadn't been
45+
implemented anyway.
46+
47+
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
48+
[Keep a changelog]: https://keepachangelog.com/en/1.0.0/
49+
50+
[unreleased]: https://github.com/noib3/cokeline.nvim/compare/v0.1.0...HEAD
51+
[0.1.0]: https://github.com/noib3/cokeline.nvim/releases/tag/v0.1.0

0 commit comments

Comments
 (0)