This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
feat: add auto vimdoc generation workflow #76
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,41 @@ | ||
name: panvimdoc | ||
|
||
on: | ||
push: | ||
paths: | ||
- README.md | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
name: markdown to vimdoc | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup git | ||
run: | | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
printf 'VIMDOC_BRANCH=bot/vimdoc/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV | ||
- name: Checkout to vimdoc branch | ||
run: git checkout -b ${VIMDOC_BRANCH} | ||
- name: panvimdoc | ||
uses: kdheepak/panvimdoc@v2.7.1 | ||
with: | ||
vimdoc: "feline" | ||
description: "minimal, stylish and customizable statusline for neovim" | ||
version: "NVIM v0.5.0" | ||
- name: Create PR | ||
run: | | ||
if ! [[ -z $(git status -s) ]]; then | ||
git add doc/feline.txt | ||
git commit -m "chore: generated vimdoc" | ||
git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${VIMDOC_BRANCH} | ||
gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${VIMDOC_BRANCH} || true | ||
fi |
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
<!-- panvimdoc-ignore-start --> | ||
|
||
# feline.nvim | ||
|
||
A minimal, stylish and customizable statusline for Neovim written in Lua | ||
|
||
Requires Neovim >= 0.5 | ||
|
||
|
||
<!-- panvimdoc-ignore-end --> | ||
## About | ||
|
||
Feline is a Lua statusline that prioritizes speed, customizability and minimalism. It's blazing fast and never gets in your way. Feline only provides you with the necessary tools that you need to customize the statusline to your liking and avoids feature-bloat. It's also extremely customizable and allows you to configure it in any way you wish to. Feline also has reasonable defaults for those who don't want to configure things and just want a good out of the box experience. | ||
Feline is a Lua statusline that prioritizes speed, customizability and minimalism. It's blazing fast and never gets in your way. Feline only provides you with the necessary tools that you need to customize the statusline to your liking and avoids feature-bloat. It's also extremely customizable and allows you to configure it in any way you wish to. Feline also has reasonable defaults for those who don't want to configure things and just want a good out of the box experience. | ||
|
||
## Features | ||
|
||
|
@@ -34,6 +38,8 @@ Feline is a Lua statusline that prioritizes speed, customizability and minimalis | |
- [A patched font](https://github.com/ryanoasis/nerd-fonts/) - For icon support | ||
- [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim/) - For [git providers](#git) | ||
|
||
<!-- panvimdoc-ignore-start --> | ||
|
||
## Screenshots | ||
|
||
**NOTE: Some of these configurations may be outdated and may need to be changed prior to use. A few of the configurations are missing a link because the link to them was removed due to the link no longer being valid.** | ||
|
@@ -75,7 +81,7 @@ Feline is a Lua statusline that prioritizes speed, customizability and minimalis | |
|
||
You can add your own configuration to this list. If you're interested, simply make a [Pull Request](CONTRIBUTING.md) and I'll add it. | ||
|
||
## How to install | ||
## Installation | ||
|
||
### Install latest stable release | ||
|
||
|
@@ -109,7 +115,9 @@ Plug 'famiu/feline.nvim', { 'tag': 'v0.1' } | |
|
||
### Install from develop branch | ||
|
||
**NOTE:** The develop branch is intended for those who either wish to contribute to Feline or want the absolute bleeding edge version of Feline. The develop branch may contain changes that have not been tested thoroughly and therefore stability is not guaranteed. Moreover, commit history of the develop branch may be rewritten at any time. So use it at your own risk. | ||
**NOTE:** The develop branch is intended for those who either wish to contribute to Feline or want the absolute bleeding edge version of Feline. | ||
The develop branch may contain changes that have not been tested thoroughly and therefore stability is not guaranteed. | ||
Moreover, commit history of the develop branch may be rewritten at any time. So use it at your own risk. | ||
|
||
- [packer.nvim](https://github.com/wbthomason/packer.nvim/): | ||
|
||
|
@@ -123,7 +131,9 @@ use { 'famiu/feline.nvim', branch = 'develop' } | |
Plug 'famiu/feline.nvim', { 'branch': 'develop' } | ||
``` | ||
|
||
## How to use | ||
<!-- panvimdoc-ignore-end --> | ||
|
||
## Usage | ||
|
||
Once you've installed Feline, it's very easy to start using it. Here are the following options for using Feline: | ||
|
||
|
@@ -143,7 +153,8 @@ require('feline').setup({ | |
}) | ||
``` | ||
|
||
NOTE: This is also the configuration used by default if you don't have `nvim-web-devicons`. You don't have to specify it manually in case you don't have `nvim-web-devicons`. In that case, Feline will detect that you don't have `nvim-web-devicons` and automatically pick the `noicon` preset. | ||
NOTE: This is also the configuration used by default if you don't have `nvim-web-devicons`. You don't have to specify it manually in case you don't have `nvim-web-devicons`. | ||
In that case, Feline will detect that you don't have `nvim-web-devicons` and automatically pick the `noicon` preset. | ||
|
||
You can also make minor tweaks like changing the default foreground and background color like this: | ||
|
||
|
@@ -510,7 +521,7 @@ hl = {bg = 'oceanblue'}, | |
right_sep = 'slant_right' | ||
``` | ||
|
||
Not only that, you can add your own custom colors and separators through [the setup function](#the-setup-function) which allows you to just use the name of the color or separator to refer to it. | ||
Not only that, you can add your own custom colors and separators through [the setup function](#setup-function) which allows you to just use the name of the color or separator to refer to it. | ||
|
||
Below is a list of all the default value names and their values: | ||
|
||
|
@@ -557,7 +568,7 @@ Below is a list of all the default value names and their values: | |
| `right_rounded_thin` | `''` | | ||
| `circle` | `'●'` | | ||
|
||
#### The setup function | ||
#### Setup function | ||
|
||
Now that we've learned to set up both the components table, it's finally time to revisit the setup function. The setup function takes a table that can have the following values: | ||
|
||
|
@@ -624,7 +635,7 @@ If you like the defaults for the most part but there's some things you want to c | |
local components = require('feline.presets')[preset_name].components | ||
``` | ||
|
||
After that, you can just modify the components and call [the setup function](#the-setup-function) with the preset as you normally would. | ||
After that, you can just modify the components and call [the setup function](#setup-function) with the preset as you normally would. | ||
Comment on lines
-627
to
+638
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe you should change this to |
||
|
||
## Providers | ||
|
||
|
@@ -723,7 +734,7 @@ In case none of the default providers do what you want, it's very easy to add yo | |
|
||
### Common issues | ||
|
||
#### Feline crashes or disappears for seemingly no reason | ||
> Feline crashes or disappears for seemingly no reason | ||
|
||
This can be caused if you forget to remove your other statusline plugins after installing Feline. Make sure all other statusline plugins are removed before you install Feline, that should fix the issue. | ||
|
||
|
@@ -739,7 +750,7 @@ require('feline').reset_highlights() | |
|
||
And then Feline will automatically regenerate those highlights when it needs them, so you don't have to worry about setting the highlights yourself. | ||
|
||
#### Use thin line instead of the inactive statusline | ||
#### Thin line for horizontal splits | ||
|
||
If you want, you can have a thin line instead of the inactive statusline to separate your windows, like the vertical window split separator, except in this case it would act as a horizontal window separator of sorts. You can do this through: | ||
|
||
|
@@ -773,6 +784,8 @@ components.inactive = { | |
} | ||
``` | ||
|
||
<!-- panvimdoc-ignore-start --> | ||
|
||
### Reporting issues or feature requests | ||
|
||
If you have an issue that you can't find the fix to in the documentation or want to request a feature you think is absolutely necessary, feel free to make a new [Issue](https://github.com/famiu/feline.nvim/issues) and I will try my best to look into it. If you want to contribute to Feline, you can make a Pull Request. For more details, please see: [CONTRIBUTING](CONTRIBUTING.md) | ||
|
@@ -793,10 +806,14 @@ Lastly, anyone is welcomes to contribute to Feline, either by making an Issue or | |
|
||
And this plugin is named after cats, you won't get that anywhere else. | ||
|
||
<!-- panvimdoc-ignore-end --> | ||
|
||
## LICENSE | ||
|
||
Feline is licensed under GNU GPLv3. For more info, see: [LICENSE.md](LICENSE.md). | ||
|
||
<!-- panvimdoc-ignore-start --> | ||
|
||
## Miscellaneous | ||
|
||
### Naming | ||
|
@@ -812,3 +829,5 @@ Feline uses [Semantic Versioning](https://semver.org/) for its version names. Th | |
If you liked this plugin, also check out: | ||
|
||
- [bufdelete.nvim](https://github.com/famiu/bufdelete.nvim) - Delete Neovim buffers without losing your window layout. | ||
|
||
<!-- panvimdoc-ignore-end --> |
Empty file.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I should have changed this to become
the [setup function](#setup-function)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does changing it to that fix the issue?