Commit Graph

474 Commits

Author SHA1 Message Date
Rob Watson 46131d0a41 feat(diagnostics): accept functions as symbols 2023-10-22 08:16:17 +02:00
Alexander Courtis 2248ef254d
fix(#1087): handle searchcount failures (#1088)
Co-authored-by: Shadman <13149513+shadmansaleh@users.noreply.github.com>
2023-10-20 09:36:20 +06:00
shadmansaleh 1dc8b44423 chore: autogen (vimdocs+formating) 2023-10-20 03:32:59 +00:00
Jethro Cao d3f3395b91
feat: Add ctrlspace extension (#1121) 2023-10-20 09:32:27 +06:00
Shadman 7533b0ead6
Revert "added colours to qf extension to distinguish quickfix and location list (#933)" (#1118)
This reverts commit 9170434aa1.
2023-10-18 11:22:34 +06:00
shadmansaleh 2e2284db88 chore: autogen (vimdocs+formating) 2023-10-18 05:00:59 +00:00
Shadman 343e1941ba
drop support for nvim-0.5, 0.6 (BREAKING) (#1002)
* chore: drop support for nvim-0.5, 0.6 (BREAKING)

Users of these versions can still use compatibility tags
compat-nvim-0.5 and compat-nvim-0.6 respectively.

BREAKING CHANGE

* add testing for 0.9
2023-10-18 11:00:32 +06:00
Pedro Pombeiro c55af3b39c
enhance: Update git_branch.lua to use GIT_DIR environment variable (#1114)
Fix typo

Remove whitespace

Try GIT_DIR first
2023-10-18 10:49:27 +06:00
暮晨 388a396411
Added extension for mason (#1113)
* feat: added extension for mason

* feat: update readme

* feat: capitalize the first letter

* feat: delete icon

---------

Co-authored-by: Shadman <13149513+shadmansaleh@users.noreply.github.com>
2023-10-17 15:51:54 +06:00
shadmansaleh e7efd7dd3a chore: autogen (vimdocs+formating) 2023-10-17 09:37:53 +00:00
Anthony Ruhier 5d85dc7858
Add options to the Tabs module to align it with the Buffers module (#920)
* Add a path option for tabs

Add get_props to align the module on Buffers.

* Add option to set the tab max size

Shorten dynamically the tab name to minimize its length when needed.

* Show modified status
2023-10-17 15:37:24 +06:00
Ofir Gal afece9bbf9
Added hlgroup for `diff` of lualine (#846)
* added higlightgroups for lualine to allow colorscheme to set colors for lualine

* chore: update docs for default diff color change

---------

Co-authored-by: Shadman <13149513+shadmansaleh@users.noreply.github.com>
2023-08-03 13:01:10 +06:00
zeertzjq 442d2ab757
feat!: switch to Nerd Fonts v3.0.0 for diagnostic symbols (#1033)
Ref https://github.com/ryanoasis/nerd-fonts/issues/1059#issuecomment-1404891287
2023-05-04 20:59:39 +06:00
shadmansaleh 84ffb80e45 fixup: showcmd not working with %s
switch to using %z for internal separator representation
since %s is now used by neovim.

closes #949
2023-04-09 15:48:56 +06:00
Chris1320 c28a7427c3
Fix: `searchcount` error (#1004) (#1005)
- `searchcount.lua` now checks if the resulting table from
  `vim.fn.searchcount` is empty to avoid the error.

Signed-off-by: Chris1320 <chris1320is@protonmail.com>
2023-04-03 16:41:41 +06:00
Gennaro Tedesco 9170434aa1
added colours to qf extension to distinguish quickfix and location list (#933)
* added colours to qf extension to distinguish quickfix and location list

* renamed M.init() more properly

* decoupling colours assignments from init method
2023-03-31 21:07:07 +06:00
Stefan Scherfke 0ddacf01ed
feat: allow specifying theme as function (#998)
Use case: I have a custom theme that dynamically adjusts to the OS' dark/light mode. If the theme can be a function, that function can return the proper color values each time it is called.
2023-03-31 14:03:47 +06:00
shadmansaleh 4bfc6bc4f3 chore: autogen (vimdocs+formating) 2023-03-31 08:02:48 +00:00
Mika Raunio 44a0fba867
feat: add name+parent path option for component(filename) (#945)
Co-authored-by: Mika Raunio <mika@diago.global>
2023-03-31 14:02:12 +06:00
Matthew Sia 7600962455
feat: added extension for trouble (#932)
* added extension for trouble

* add trouble extension to readme
2023-03-30 12:21:11 +06:00
Gennaro Tedesco 5562281c60
feat: added extension for lazy.nvim (#956)
* added extension for lazy.nvim

* add lazy to the list of extensions in README

---------

Co-authored-by: Shadman <13149513+shadmansaleh@users.noreply.github.com>
2023-03-30 12:17:02 +06:00
shadmansaleh 7bd381c68b fixup: don't apply padding to empty components 2023-03-30 12:13:15 +06:00
shadmansaleh 1af8c67257 chore: autogen (vimdocs+formating) 2023-03-30 05:34:59 +00:00
Myshko Dm 253a656ca5
feat: add selectioncount component (#959) 2023-03-30 11:34:32 +06:00
Myshko Dm 2ee2fd5b2b
feat: add maxcount & timeout options to searchcount (#958) 2023-03-30 11:30:15 +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
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
Zhizhen He 6bb1f80a98
fix: typo (#997) 2023-03-30 10:12:37 +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
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
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
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
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