Commit Graph

634 Commits

Author SHA1 Message Date
shadmansaleh 267dba7d37 chore: autogen (vimdocs+formating) 2023-03-30 05:29:14 +00:00
shadmansaleh 2c87c1c32d chore: place datetime component docs in correct location 2023-03-30 11:28:39 +06:00
shadmansaleh 557715ff91 chore: autogen (vimdocs+formating) 2023-03-30 05:25:45 +00:00
Will Hopkins 7f5f2d811d
feat: change active color of `buffers`, `tabs` & `windows` component according to mode (#971)
- Added `M.get_mode_suffix()` in `highlight.lua` to simplify retrieving the mode suffix.
- Fixed graphical bug occurring when `buffers` component color was changed.
    - Separators would not change to new color.
    - Fixed by adding the mode suffix to the highlight name
        in `M.component_format_highlight` if the output of
        `highlight.fn()` is a string.
- Added `use_mode_colors` option to `buffers`, `tabs`, and `windows` components.
    - If it's set to true, the component's colors will change with the
      mode, as most other components do.
- Updated readme.
2023-03-30 11:25:14 +06:00
shadmansaleh dd823a69ca chore: autogen (vimdocs+formating) 2023-03-30 04:43:14 +00:00
Carl Johnson 9805076155
feat: add draw_empty option to always draw component event when it's empty (#964)
* feat: add draw_empty option to always draw component event when it's empty

Closes #963

* tests: add test for component draw_empty option

* docs: add docs for component draw_empty option

---------

Co-authored-by: Carl Johnson <carl.darick.johnson@gmail.com>
2023-03-30 10:42:48 +06:00
shadmansaleh 508b0785bc chore: autogen (vimdocs+formating) 2023-03-30 04:32:45 +00:00
Will Hopkins c680fb4c25
feat: add datetime component (#973) 2023-03-30 10:32:17 +06:00
_rs 0695853055
fix: progress component changes size while scrolling (#986)
Fixes https://github.com/nvim-lualine/lualine.nvim/issues/849
2023-03-30 10:16:42 +06:00
Miroslav Bendík 092f2497f0
Show insert mode in terminal (powerline theme) (#989) 2023-03-30 10:15:36 +06:00
shadmansaleh 0fc41b68a1 chore: autogen (vimdocs+formating) 2023-03-30 04:14:44 +00:00
Simon Ho 9a01ed98df
Add overseer extension to README (#990) 2023-03-30 10:14:12 +06:00
shadmansaleh 6316774ac2 chore: autogen (vimdocs+formating) 2023-03-30 04:13:10 +00:00
Zhizhen He 6bb1f80a98
fix: typo (#997) 2023-03-30 10:12:37 +06:00
shadmansaleh f7b3daf1ae chore: autogen (vimdocs+formating) 2023-03-30 04:06:48 +00:00
Firas Khalil Khana 6b6c18023d
Update nvim-web-devicons link (#1000) 2023-03-30 10:05:54 +06:00
shadmansaleh e99d733e02 chore: autogen (vimdocs+formating) 2023-02-14 17:04:13 +00:00
shadmansaleh 2ac8d77575 fix: High cpu usage on O-PENDING mode
Mitigation for #967

This happens primarily because of
https://github.com/neovim/neovim/issues/22263

To prevent this from affecting lualine. Mode changed event
for op-pending mode no longer gets scheduled.

As a side effect lualine no longer properly refreshes upon switching
to op-pending mode.
2023-02-14 22:59:11 +06:00
shadmansaleh 0050b30855 chore: autogen (vimdocs+formating) 2023-01-11 06:28:58 +00:00
shadmansaleh d15019ce8e chore: remove funding links
they were never useful anyway.
2023-01-11 12:27:11 +06:00
shadmansaleh d8c392dd75 chore: autogen (vimdocs+formating) 2023-01-05 04:32:31 +00:00
Adrian Costin 36b3e39bd3
fix README.md typos (#914)
Co-authored-by: Adrian Costin <adrianc@synopsys.com>
2023-01-05 10:31:53 +06:00
shadmansaleh 599e477fe4 chore: autogen (vimdocs+formating) 2023-01-05 04:30:20 +00:00
QingTian1927 11757b012b
Add missing coma to README.md - filename component (#923) 2023-01-05 10:29:45 +06:00
shadmansaleh 32a7382a75 fixup: fix typos in issue template
fixes #922
2022-12-28 09:00:29 +06:00
shadmansaleh fffbcb8292 chore: autogen (vimdocs+formating) 2022-12-22 13:15:09 +00:00
Dalius Dobravolskas 3497c6c6b3
Passing self as second arg to self.options.fmt (#915)
* Add `tabnr` to `fmt` function

* Passing self as second arg to `self.options.fmt`

* README updated.
2022-12-22 19:14:34 +06:00
shadmansaleh afb8bfb786 enhance: explicitly prefer user config dir
when loading components/themes/extensions explicitly prefer users
config dir over plugin dirs instead of relying on sequencing of rtp.
2022-12-22 12:53:38 +06:00
shadmansaleh bfa0d99ba6 fixup: All tab names have prefix "fugitive: " if current buffer is
fugitive status buffer

fixes #901
2022-11-28 20:48:27 +06:00
shadmansaleh b6314ac556 fixup: tabs component doesn't show fugitive status name properly
fixes #900
2022-11-26 10:02:04 +06:00
shadmansaleh 3325d5d43a chore: autogen (vimdocs+formating) 2022-10-23 14:41:39 +00:00
zappolowski 9d177b668c
fix component(filetype) proper icon based on filetype (#810)
* Refactor tests to use stubs for nvim-web-devicons

* Simplify getting icon

`get_icon` does not need the 2nd parameter (`ext`) as it will derive it
from the given `name` (1st argument) itself.

* fix component(filetype) proper icon based on filetype

With https://github.com/kyazdani42/nvim-web-devicons/pull/125 a filetype
based lookup was implemented upstream which can be used to get an icon
when a file doesn't have an extension.

fixes #578
2022-10-23 20:41:12 +06:00
zappolowski a4bc56f6fe
docs: Mention that nvim-web-devicons is required for proper testing (#856) 2022-10-22 16:49:30 +06:00
Yotam aa357acdae
spaced combined word (#874) 2022-10-22 16:48:58 +06:00
shadmansaleh abb03129e0 chore: autogen (vimdocs+formating) 2022-10-19 09:07:21 +00:00
BlakeJC94 1a6ab5f2f4
feat: added searchcount component (#869)
* feat: added searchcount component

* feat: added timeout and maxcount to vim.fn.searchcount

* docs: added searchcount to README

* style: sorted list of components
2022-10-19 15:06:45 +06:00
Gennaro Tedesco dcd194f700
added logic to show fzf-lua statusline if present (#863) 2022-10-19 08:19:50 +06:00
zappolowski edca2b03c7
chore(ci): test on nvim-0.8 (#857) 2022-10-06 10:15:16 +06:00
shadmansaleh f564015a23 chore: autogen (vimdocs+formating) 2022-10-05 06:44:31 +00:00
David Kennedy 0933392235
Update README.md (#855)
Lualine recognizes `go:` and `vo:` but Neovim doesn't and will throw an error.
2022-10-05 12:43:28 +06:00
Antoine Cotten a52f078026 feat(utils): support extracting fallback color 2022-09-12 00:35:46 +06:00
Antoine Cotten 05f850d25f feat(utils): support extracting 'sp' scope hl color 2022-09-12 00:35:46 +06:00
Andrey Mishakin 2061fcbf3b
fix: display virtual column number in location component (#835) 2022-09-12 00:32:09 +06:00
zappolowski 5d133a1ef2
fix component(filename) add separator between filename and icons (#812)
This makes it behave like the default statusline.

fixes #794
2022-09-10 15:39:38 +06:00
Daniel Enrique a03f31f566
Add overseer extension. (#828)
* Add overseer ext.

* chore: autogen (vimdocs+formating)

Co-authored-by: dcordb <dcordb@users.noreply.github.com>
2022-09-10 15:22:46 +06:00
zappolowski f10101ab04
feat(filename) Always use the first letter for hidden directories (#833)
Instead of shortening a path segment to just the dot, it is now always
using 2 characters.

E.g.

```
~/.config/nvim/lua/config/lualine.lua
```

is shortened to

```
~/.c/n/l/c/lualine.lua
```

This includes a rewrite of the shortening logic as it cannot be
expressed easily/readable using patterns. The current approach starts at
the beginning and replaces each segment by a shortened version and
keeping track of the overall length (basic book keeping on how many
characters were saved by the replacement).
2022-09-10 15:20:37 +06:00
matthewsia98 2176d85f39
corrected order returned by workspace diagnostic (#831) 2022-09-10 15:14:26 +06:00
shadmansaleh 3cf45404d4 chore: autogen (vimdocs+formating) 2022-08-22 05:13:35 +00:00
Keith Plant b87e47e1de
enhance: refresh lualine on CursorMovedI event (#809) 2022-08-22 11:13:03 +06:00
shadmansaleh 9076378ac1 chore: autogen (vimdocs+formating) 2022-08-20 15:51:32 +00:00