chore: repo transfer to nvim-lualine

This commit is contained in:
shadmansaleh 2021-10-22 10:57:04 +06:00
parent 7ba7829a05
commit ad4f4ff751
5 changed files with 18 additions and 18 deletions

View File

@ -47,7 +47,7 @@ lualine_c = { function() return require'lsp-status'.status() end}
``` ```
### Options simplification ### Options simplification
See [#24](https://github.com/shadmansaleh/lualine.nvim/pull/24) for details See [#24](https://github.com/nvim-lualine/lualine.nvim/pull/24) for details
- `upper` & `lower` removed use `string.upper/lower` in `fmt` option. - `upper` & `lower` removed use `string.upper/lower` in `fmt` option.
- separators are specified by left & right instead of position - separators are specified by left & right instead of position
instead of `{'>', '<'}` you'll use `{left= '>', right='<'}`. instead of `{'>', '<'}` you'll use `{left= '>', right='<'}`.

View File

@ -2,8 +2,8 @@
<!-- panvimdoc-ignore-start --> <!-- panvimdoc-ignore-start -->
![code size](https://img.shields.io/github/languages/code-size/shadmansaleh/lualine.nvim?style=flat-square) ![code size](https://img.shields.io/github/languages/code-size/nvim-lualine/lualine.nvim?style=flat-square)
![license](https://img.shields.io/github/license/shadmansaleh/lualine.nvim?style=flat-square) ![license](https://img.shields.io/github/license/nvim-lualine/lualine.nvim?style=flat-square)
<!-- panvimdoc-ignore-end --> <!-- panvimdoc-ignore-end -->
@ -22,10 +22,10 @@ to see what you may have to change in your config.
## Contributing ## Contributing
Feel free to create an issue/pr if you want to see anything else implemented. Feel free to create an issue/pr if you want to see anything else implemented.
If you have some question or need help with configuration start a [discussion](https://github.com/shadmansaleh/lualine.nvim/discussions). If you have some question or need help with configuration start a [discussion](https://github.com/nvim-lualine/lualine.nvim/discussions).
Please read [CONTRIBUTING.md](./CONTRIBUTING.md) before opening a pr. Please read [CONTRIBUTING.md](./CONTRIBUTING.md) before opening a pr.
You can also help with documentation in [wiki](https://github.com/shadmansaleh/lualine.nvim/wiki) You can also help with documentation in [wiki](https://github.com/nvim-lualine/lualine.nvim/wiki)
<!-- panvimdoc-ignore-start --> <!-- panvimdoc-ignore-start -->
@ -78,7 +78,7 @@ Last Updated On: 20-09-2021
### [vim-plug](https://github.com/junegunn/vim-plug) ### [vim-plug](https://github.com/junegunn/vim-plug)
```vim ```vim
Plug 'shadmansaleh/lualine.nvim' Plug 'nvim-lualine/lualine.nvim'
" If you want to have icons in your statusline choose one of these " If you want to have icons in your statusline choose one of these
Plug 'kyazdani42/nvim-web-devicons' Plug 'kyazdani42/nvim-web-devicons'
``` ```
@ -87,7 +87,7 @@ Plug 'kyazdani42/nvim-web-devicons'
```lua ```lua
use { use {
'shadmansaleh/lualine.nvim', 'nvim-lualine/lualine.nvim',
requires = {'kyazdani42/nvim-web-devicons', opt = true} requires = {'kyazdani42/nvim-web-devicons', opt = true}
} }
``` ```
@ -648,15 +648,15 @@ options = {disabled_filetypes = {'lua'}}
### Contributors ### Contributors
Thanks to these wonderful people we enjoy this awesome plugin. Thanks to these wonderful people we enjoy this awesome plugin.
<a href="https://github.com/shadmansaleh/lualine.nvim/graphs/contributors"> <a href="https://github.com/nvim-lualine/lualine.nvim/graphs/contributors">
<img src="https://contrib.rocks/image?repo=shadmansaleh/lualine.nvim" /> <img src="https://contrib.rocks/image?repo=nvim-lualine/lualine.nvim" />
</a> </a>
### Wiki ### Wiki
Check out the [wiki](https://github.com/shadmansaleh/lualine.nvim/wiki) for more info . Check out the [wiki](https://github.com/nvim-lualine/lualine.nvim/wiki) for more info .
You can find some useful [configuration snippets](https://github.com/shadmansaleh/lualine.nvim/wiki/Component-snippets) here. You can also share your awesome snippents with others. You can find some useful [configuration snippets](https://github.com/nvim-lualine/lualine.nvim/wiki/Component-snippets) here. You can also share your awesome snippents with others.
If you want to extened lualine with plugins or want to know If you want to extened lualine with plugins or want to know
which ones already do [wiki/plugins](https://github.com/shadmansaleh/lualine.nvim/wiki/Plugins) is for you. which ones already do [wiki/plugins](https://github.com/nvim-lualine/lualine.nvim/wiki/Plugins) is for you.
<!-- panvimdoc-ignore-end --> <!-- panvimdoc-ignore-end -->

View File

@ -20,11 +20,11 @@ CONTRIBUTING *lualine-contributing*
Feel free to create an issue/pr if you want to see anything else implemented. Feel free to create an issue/pr if you want to see anything else implemented.
If you have some question or need help with configuration start a discussion If you have some question or need help with configuration start a discussion
<https://github.com/shadmansaleh/lualine.nvim/discussions>. <https://github.com/nvim-lualine/lualine.nvim/discussions>.
Please read CONTRIBUTING.md <./CONTRIBUTING.md> before opening a pr. You can Please read CONTRIBUTING.md <./CONTRIBUTING.md> before opening a pr. You can
also help with documentation in wiki also help with documentation in wiki
<https://github.com/shadmansaleh/lualine.nvim/wiki> <https://github.com/nvim-lualine/lualine.nvim/wiki>
PERFORMANCE COMPARED TO OTHER PLUGINS*lualine-performance-compared-to-other-plugins* PERFORMANCE COMPARED TO OTHER PLUGINS*lualine-performance-compared-to-other-plugins*
@ -51,7 +51,7 @@ INSTALLATION *lualine-installation*
VIM-PLUG <HTTPS://GITHUB.COM/JUNEGUNN/VIM-PLUG> ~ VIM-PLUG <HTTPS://GITHUB.COM/JUNEGUNN/VIM-PLUG> ~
> >
Plug 'shadmansaleh/lualine.nvim' Plug 'nvim-lualine/lualine.nvim'
" If you want to have icons in your statusline choose one of these " If you want to have icons in your statusline choose one of these
Plug 'kyazdani42/nvim-web-devicons' Plug 'kyazdani42/nvim-web-devicons'
< <
@ -61,7 +61,7 @@ PACKER.NVIM <HTTPS://GITHUB.COM/WBTHOMASON/PACKER.NVIM> ~
> >
use { use {
'shadmansaleh/lualine.nvim', 'nvim-lualine/lualine.nvim',
requires = {'kyazdani42/nvim-web-devicons', opt = true} requires = {'kyazdani42/nvim-web-devicons', opt = true}
} }
< <

View File

@ -212,7 +212,7 @@ Theme `%s` not found, falling back to `auto`. Check if spelling is right.
### options.theme ### options.theme
Theme `%s` failed, falling back to `gruvbox`. Theme `%s` failed, falling back to `gruvbox`.
This shouldn't happen. This shouldn't happen.
Please report the issue at https://github.com/shadmansaleh/lualine.nvim/issues . Please report the issue at https://github.com/nvim-lualine/lualine.nvim/issues .
Also provide what colorscheme you're using. Also provide what colorscheme you're using.
]] ]]
modules.utils_notices.add_notice(string.format(message_template, theme_name)) modules.utils_notices.add_notice(string.format(message_template, theme_name))

View File

@ -15,7 +15,7 @@ function M:update_status()
return '' return ''
end end
-- Support accessing keys within dictionary -- Support accessing keys within dictionary
-- https://github.com/shadmansaleh/lualine.nvim/issues/25#issuecomment-907374548 -- https://github.com/nvim-lualine/lualine.nvim/issues/25#issuecomment-907374548
local name_chunks = vim.split(var_name, '%.') local name_chunks = vim.split(var_name, '%.')
local return_val = vim[scope][name_chunks[1]] local return_val = vim[scope][name_chunks[1]]
for i = 2, #name_chunks do for i = 2, #name_chunks do