Commit Graph

637 Commits

Author SHA1 Message Date
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
John Fred Fadrigalan 5d8fbf2943
fix component(filetype) to return default icon instead of nothing (#800) 2022-08-20 21:50:53 +06:00
shadmansaleh c0510ddec8 chore: autogen (vimdocs+formating) 2022-08-09 07:08:23 +00:00
Hongbo Liu 7b4b864af7
[filename] avoid new file status for unnamed (#795) 2022-08-09 13:07:55 +06:00
Plato 03bcf015d1
More user-friendly LualineBuffersJump (#780)
* buffers: user friendly LualineBuffersJump version

LualineBuffersJump throws an error when an attempt to jump to a
non-existent buffer index is made. It's expected from users to
trigger this error by accident while attempting to switch buffers.
To deal with this add <bang> support to LualineBuffersJump.

Signed-off-by: Plato Kiorpelidis <kioplato@gmail.com>

* chore: autogen (vimdocs+formating)

Co-authored-by: kioplato <kioplato@users.noreply.github.com>
2022-08-08 21:52:28 +06:00
shadmansaleh 4b5048aee1 chore: autogen (vimdocs+formating) 2022-08-08 10:11:17 +00:00
shadmansaleh de778faf81 enhance: for command ModeChanged event refresh lualine in autocmd context
closes #791
2022-08-08 16:08:13 +06:00
shadmansaleh 5b1dc4da0b chore: update issue_template 2022-08-08 12:16:22 +06:00
shadmansaleh 664c688974 enhance: refresh lualine on CursorMoved event
closes #792
2022-08-08 12:01:52 +06:00
shadmansaleh 1e53bf7386 chore: autogen (vimdocs+formating) 2022-08-08 06:00:02 +00:00
Hongbo Liu 679e9e71de
[filename] support detect new file status (#785)
* [filename] support detect new file status

* update readme about new file status

* add definition for new file
2022-08-08 11:59:33 +06:00
shadmansaleh e22c7b3c9b Revert: "Revert fix: don't call redrawstatus/tabline they have a ton of side effects"
This commit reverts b1042d3184

Yeah calling redraw still causes too many issues like #781 #788

fixes #788
2022-08-07 20:34:09 +06:00
shadmansaleh f40db9a224 fixup: prevent wildmode=list from disapearing
don't call redrawstatus on command mode if wildmode is set to list
fixes #781
2022-08-07 12:33:39 +06:00
shadmansaleh b1042d3184 Revert "fix: don't call redrawstatus/tabline they have a ton of side effects"
This reverts commit 6fbc35b3e0.
The statusline flashing issue in #747 doesn't seem to occur any more as we
aren't updating in autocmd context . But we still have statusline
not updating in cmdline mode. So lets try reintroducing the redraw
commands.
2022-08-04 19:23:38 +06:00
shadmansaleh d2a727da9f fixup: globalstatus hidden in floating windows + flickering
fixes #774
2022-08-04 18:33:16 +06:00
shadmansaleh 136a92cb97 fixup: fix all winbars being evaluated in curwins context with globarstatus
fixes #779
2022-08-04 18:05:05 +06:00
shadmansaleh f50ce0f9f6 fixup: statusline not refreshing when winbar or inactive_winbar is set
fixes #777
2022-08-03 21:45:52 +06:00
shadmansaleh 93b2f4af62 chore: autogen (vimdocs+formating) 2022-08-03 15:36:17 +00:00
shadmansaleh e8294ac56a feat: allow lualine to be temporarily completely disabled
Adds `lualine.hide()`

closes #776
2022-08-03 21:35:31 +06:00
shadmansaleh b80ba74d4c enhance/doc: rename refresh_opts.kind to scope.
document lualine.refresh()
apply defaults to refresh_opts
2022-08-03 21:35:31 +06:00
zeertzjq e37d5d325d
feat: add support for mode ntT (#775) 2022-08-02 19:10:33 +06:00
shadmansaleh c880c8cfed chore: autogen (vimdocs+formating) 2022-07-31 17:11:58 +00:00
shadmansaleh bd52d2d77e fix: notice not being shown in lualine if it doesn't end with \n 2022-07-31 23:10:56 +06:00
Shadman 6d11f9f508
feat: allow lualine to ignore focus on specific filetypes. (#767)
* feat: allow lualine to ignore focus on specific filetypes.

closes #710

* fix: extensions on ingnored_focus

* perf: reuse api call results & use local variables instead of vim.g

* make location & progress components behave in ingnored filetypes

* fix: crash when last_focused win gets closed

* fix: location & progress related broken tests
2022-07-29 16:54:31 +06:00
shadmansaleh 788805771c fixup: escape results of vim_var components 2022-07-28 13:30:17 +06:00
shadmansaleh c6d7485114 fixup: allow refresh option to be set individually 2022-07-28 13:14:55 +06:00
shadmansaleh aeeefcef98 fix: don't show notification for empty LualineNotice
Previously even if config error was resolved in following setup call
notification for LualineNotice was displayed and when user opened
LualineNotice it'll be empty leaving users confused.

Now we'll wait for 2s before sending notification for LualineNotice so
if successive calls to setup fixed the config error the notification
will not be shown.
2022-07-28 13:07:44 +06:00
shadmansaleh 8a9c97d111 fix: broken tests 2022-07-28 11:39:58 +06:00
shadmansaleh e9b05e7f35 fixup: don't take over stl/wbr/tbl opts in ingnored filetypes 2022-07-28 11:22:54 +06:00
shadmansaleh b378660841 chore: autogen (vimdocs+formating) 2022-07-27 18:03:53 +00:00
Yohanes Bandung Bondowoso 0521ada344
feat: add workspace diagnostics source (#618)
* feat: add workspace diagnostics source

* doc: add nvim_workspace_diagnostics to list of sources

Co-authored-by: Shadman <13149513+shadmansaleh@users.noreply.github.com>
2022-07-28 00:02:58 +06:00
shadmansaleh 33f03620c3 chore: autogen (vimdocs+formating) 2022-07-27 16:03:32 +00:00
shadmansaleh 2d6108e07f fix flickering while working one enter=false floats
some of them are caused by https://github.com/neovim/neovim/issues/15300
some are https://github.com/neovim/neovim/issues/19464
and other unknown bugs too

So as workaround don't update statusline in autocmd context immediately
instead defer the refresh to 50ms later in timer context.

fixes #751 #753 #755
2022-07-27 22:01:15 +06:00
shadmansaleh 5f68f070e4 chore: fix broken tests 2022-07-23 13:01:52 +06:00
shadmansaleh fb9a0ebbd4 fix: refresh lualine on filetype change 2022-07-23 12:53:30 +06:00
shadmansaleh 292c6bbcce enhance: blend statusline with background when lualine is disabled 2022-07-23 12:53:30 +06:00
shadmansaleh 6fbc35b3e0 fix: don't call redrawstatus/tabline they have a ton of side effects
closes #747
2022-07-23 08:45:18 +06:00
shadmansaleh bf7dfb5dab fix: on_click messing up highlights
solution seems to be keeping hl defs out of on_click wrap.
2022-07-22 20:17:02 +06:00
shadmansaleh 669a7d63ca chore: bump stylua version to 14.1 in CI 2022-07-22 19:48:20 +06:00
shadmansaleh d7386bbab3 chore: autogen (vimdocs+formating) 2022-07-22 13:30:37 +00:00
Shadman 53aa3d82d9
feat: refresh lualine based on timer + winbar support. (#736)
* feat: refresh lualine based on timer.

* fix config test

* fix lag on win change issue

* handle errors in timer callback

* feat: add winbar support

Pull in winbar changes form pr #689 and adapt them
Co-authored-by: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com>

* make winbar disapear when winbar evals empty

* only update stl of curwin with globalstatus

* properly clear win local stl and wbr opts

* add version guards for winbar feature

* only add winbar if height > 1

* fix tests?

* refresh lualine on ModeChanged event

* ignore floating windows for refresh

* properply restore options to previous state

* fix stl not updating in cmd mode + some optimizations

* fix tests on <nvim-0.7

* merge status_dispatch & winbar_dispatch + winbar support for extensions

* fix globalstatus option not live updating

* update docs

* feat: allow disabling winbar and statusline separately

* fix tests

* fix: winbar some times oddly throwing errors

about not having space in floating windows.

This implements a temporary workaround the issue(https://github.com/neovim/neovim/issues/19464)
until the bug in neovim gets fixed.

Co-authored-by: Diego Fujii <android.mxdiego9@gmail.com>
2022-07-22 19:29:55 +06:00
shadmansaleh 8d956c1825 chore: autogen (vimdocs+formating) 2022-07-20 13:29:21 +00:00
Shadman 0ac721d376
feat: add on_click option to interact with mouse (#742)
* feat: add on_click option to interact with mouse

closes #706
2022-07-20 19:28:49 +06:00
shadmansaleh 655411fb7a chore: autogen (vimdocs+formating) 2022-07-15 11:53:29 +00:00
Benedikt Rips 8f75e65878
feat(extension): Extension for the Mundo plugin (#740)
* Add an extension for the mundo plugin

* List the mundo extension
2022-07-15 17:52:49 +06:00
shadmansaleh 588cf4185b chore: autogen (vimdocs+formating) 2022-07-13 07:25:40 +00:00
Yuta Katayama 1e4fc5a024
docs: fix typo (#739) 2022-07-13 13:25:03 +06:00
shadmansaleh 8b4e4988d4 chore(ci): test on nvim-0.7 2022-07-12 12:10:33 +06:00