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

Commit

Permalink
feat: add auto doc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ram02z committed Sep 17, 2021
1 parent 03ba0b3 commit 7b145ef
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 7 deletions.
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
33 changes: 26 additions & 7 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 @@ -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 @@ -723,13 +734,13 @@ 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.

### Tips and tricks

#### Reset highlight
> Reset highlight
If, for some reason, you want to clear all highlights that Feline sets (useful if you want to reload your entire Neovim config which may mess up highlights), you can do:

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
> Use thin line instead of the inactive statusline
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.

0 comments on commit 7b145ef

Please sign in to comment.