Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

feat: add auto vimdoc generation workflow #76

Merged
merged 1 commit into from
Sep 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/docs.yaml
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
39 changes: 29 additions & 10 deletions README.md
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

Expand Down Expand Up @@ -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.**
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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/):

Expand All @@ -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:

Expand All @@ -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:

Expand Down Expand Up @@ -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.
Copy link
Contributor Author

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)

Copy link
Owner

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?


Below is a list of all the default value names and their values:

Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should change this to the [setup function](#setup-function) too


## Providers

Expand Down Expand Up @@ -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.

Expand All @@ -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:

Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -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 added doc/feline.txt
Empty file.