Skip to content

Commit

Permalink
🎉 release: v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Dec 7, 2021
1 parent d8de59a commit 9fd956f
Show file tree
Hide file tree
Showing 18 changed files with 1,572 additions and 1,205 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/commit-messages.yaml
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 }}
18 changes: 18 additions & 0 deletions .github/workflows/lines.yaml
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
9 changes: 0 additions & 9 deletions .github/workflows/main.yaml

This file was deleted.

51 changes: 51 additions & 0 deletions CHANGELOG.md
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
Loading

0 comments on commit 9fd956f

Please sign in to comment.