Commit Graph

146 Commits

Author SHA1 Message Date
shadmansaleh 37179f9149 chore: autogen (vimdocs+formating) 2022-02-07 05:27:07 +00:00
shadmansaleh dc20cbd0a9 chore: autogen (vimdocs+formating) 2022-02-06 07:24:32 +00:00
Shadman 247aafd7fc
chore: overhaul CI (#565)
* run tests on multiple versions of neovim
* run docgen & formating in pr
* chore: small fixes in docs.
2022-02-01 14:00:36 +06:00
github-actions[bot] fd8fa5ddd8
chore: generated vimdoc (#539)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-01-07 21:54:10 +06:00
github-actions[bot] c2107f52e1
chore: generated vimdoc (#519)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-01-02 09:42:43 +06:00
github-actions[bot] e0a7d5bfcb
chore: generated vimdoc (#517)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-12-31 18:10:45 +06:00
shadmansaleh 9e26823ea6 fixup: error on branch component when stray .git files exist
fixes #490
2021-12-25 16:13:39 +06:00
github-actions[bot] 593e28964c
chore: generated vimdoc (#506)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-12-22 20:56:49 +06:00
Tobias Schmitz d02658b34d
feat(filename): add unnamed option (#496)
* feat(filename): add unnamed option

* docs(filename): add documentation for symbols
2021-12-18 18:49:41 +06:00
shadmansaleh 3a17e2dbca chore(doc): update link to wiki/Writting-a-theme 2021-12-10 06:41:20 +06:00
shadmansaleh 4231b63196 fix: lsp.diagnostics deprecation warning
- change default diagnostics source from nvim_lsp to nvim_diagnostic
  and deprecate nvim_lsp on neovim-0.6 and higher.
- rename diagnostics source nvim to nvim_diagnostic. nvim could be
  confusing.

fixes #473
2021-12-09 23:33:36 +06:00
github-actions[bot] d68631d2c0
chore: generated vimdoc (#468)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-12-06 08:10:59 +06:00
YONG LI 1ae4f0aa74
Support symbols-outline extension (#456)
* Support symbols-outline extension.
2021-11-28 17:00:34 +06:00
shadmansaleh cf75e1af5a docs: fix custom extension example
closes 453
2021-11-26 09:59:20 +06:00
github-actions[bot] 3ad39d4d76
chore: generated vimdoc (#446)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-11-22 10:16:27 +06:00
github-actions[bot] 98b9c05b06
chore: generated vimdoc (#441)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-11-20 11:06:07 +06:00
shadmansaleh 7b608cb573 doc: remove folds from README
people seem to have trouble finding documented stuff
because of them :/
2021-11-16 08:56:28 +06:00
Ilya Malyavin d2f5d6c8aa
feat(buffers): option to show buffer index (#433)
* feature(buffers): option to show buffer indices
2021-11-13 19:44:35 +06:00
shadmansaleh 312343db15 doc: clarify color option docs 2021-11-11 16:12:13 +06:00
github-actions[bot] 0928fef6c2
chore: generated vimdoc (#411)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-10-29 19:10:46 +06:00
github-actions[bot] 3d262d028d
chore: generated vimdoc (#405)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-10-28 09:51:44 +06:00
shadmansaleh 8d8c538fb9 fixup: fix update_in_insert caching colors in diagnostics
- mention colored option in docs
- sort component option list alphabeticaly

close #402
2021-10-26 14:37:50 +06:00
Mark Story 61cd6e6ef8
feat: add fern extension (#398)
* Add fern extension

Fern[^1] is general purpose tree view that can browse and manipulate
file trees. This extension provides a simple and useful statusline for
fern buffers.

[^1]: https://github.com/lambdalisue/fern.vim

* Reuse nerdtree code for fern

* doc: mention fern in README

Co-authored-by: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com>
2021-10-26 09:21:38 +06:00
shadmansaleh ef063f72b4 doc: fix default config missing comma 2021-10-23 18:44:06 +06:00
Mat Jones e909cc3caf feat: add option to always show diagnostics
* rename option and add to default config

* combine separate if statements using else if
2021-10-22 18:07:34 +06:00
shadmansaleh ad4f4ff751 chore: repo transfer to nvim-lualine 2021-10-22 10:57:04 +06:00
shadmansaleh d25a37fea0 refactor: rename component type luae and vimf
- rename luae -> lua_expr
- rename vimf -> vim_fun
luae & vimf were too vague and hand to understand.

BREAKING_CHANGE
2021-10-11 17:09:07 +06:00
shadmansaleh 6aa103def8 doc: fix color docs for diff & diagnostics component
fixes #39
closes #78
2021-10-09 16:08:22 +06:00
shadmansaleh 98b43ba3a1 fix: left sections taking over entire stl when xyz is absent
- now %= applied even when x,y,z is absent
- newly added always_divide_middle option cal be set to false to avood %=
2021-10-08 04:46:38 +06:00
shadmansaleh 8f647f7e5a chore: add contributors to README.md 2021-09-23 13:29:41 +06:00
shadmansaleh ceec01bc6c enhance: set default diagnostics source to nvim-lsp & coc
doc: update docs for options.
2021-09-21 12:30:19 +06:00
shadmansaleh 07d3df01a1 doc: update README 2021-09-21 09:52:12 +06:00
shadmansaleh d8b960fc34 doc: introduce lua-heredoc for configuring through viml 2021-09-20 22:03:10 +06:00
shadmansaleh cdc574c9b0 fix: nil error with Alpha on buffers component 2021-09-20 21:47:57 +06:00
shadmansaleh aea5d8b90c chore: fix typos 2021-09-20 19:40:47 +06:00
Dheepak Krishnamurthy 4ca1a8fd00
Add buffers and tabs component (#42)
* feat: Add tabs component  
* feat: Add buffers component 

Now you can have traditional tabline/bufferline directly with lualine.

Special thanks to @kdheepak for making it happen.

Co-authored-by: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com>
2021-09-20 19:11:41 +06:00
shadmansaleh 9f556fdf37 chore: add license statements and update benchmarks 2021-09-20 17:48:22 +06:00
github-actions[bot] 28d89472e3
chore: generated vimdoc (#61)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-19 16:42:25 +06:00
shadmansaleh c5cb601a6a feat(diagnostics): Add support for nvims diagnostic API
- neovim added new diagnostics api in https://github.com/neovim/neovim/pull/15585.
  So I've added a new diagnostics source named `nvim` (Yes I couldn't
  find a name for it :P) that shows diagnostics from that api.
  In neovim nightly with vim.diagnostics you can consider source
  `nvim_lsp` obsolete.
- Diagnostics source `vim_lsp` was removed in a mistake now it's
  restored.
2021-09-17 18:50:32 +06:00
shadmansaleh b76c410dba fixup: fixes issues in diagnostics component
- typo diagnostic_color -> diagnostics_color
- typo hin -> hint
- warning -> warn since that's what's used everywhere
- change default diagnostics colors slightly

fixes #55
2021-09-17 15:27:57 +06:00
Shadman 2f801ed622
Refactor: simplify options (#24)
* Deprecate upper & lower option.

These does not make much sense and `format` option can provide same results

* Unify padding options

* Add persistent notices

* Make separators use left/right keys to specify left right instead of
sequence

* Rename format -> fmt

* Rename condition -> cond

* Rename disable_text -> icon_only

* Unify color_error,warning,info,hint under diagnostics_color

* Unify color_added,modified,removed hint under diff_color
2021-09-14 21:14:23 +06:00
Shadman 62bfe80fb6
chore/docgen update (#48)
* Pin panvimdoc to v2.7.1
* Add helper script to easily generate vimdoc locally.
* Update generated doc.
2021-09-14 12:58:46 +06:00
github-actions[bot] 3cdb37b98e
chore: generated vimdoc (#46)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-14 03:45:44 +00:00
shadmansaleh 9eda025073 chore: fix typos 2021-09-03 18:49:05 +06:00
shadmansaleh b3c5c4403c feat: add new filesize component 2021-09-03 16:16:10 +06:00
shadmansaleh cfb6e3db14 perf: remove ale diagnostics source from default config
It is too expensive to check if ale is installed or not when ale is not
instaled . It is not that expensive when is is installed. So anyone
useing ale can just add ale to sources option in their config.
2021-08-27 01:02:20 +06:00
shadmansaleh e831cfa9c5 Reintroduce docs for component specific transitional separators
This reverts commit fd5f635f4f.
2021-08-26 18:20:16 +06:00
shadmansaleh c9c5e3f9d1 feat: Add type option to hint what type of component is the string
String values for component are way too overloaded . This means lualine
has to make lots of checks to understand how to load a string value
as a component . With type option users can specify exactly what they
want.
2021-08-22 13:54:05 +06:00
shadmansaleh 849d6acc66 feat: Allow (neo)vim's statusline items to be used as component directly 2021-08-20 08:15:57 +06:00
shadmansaleh fcb61280f2 config: Add diff and diagnostics components to default config 2021-08-17 00:30:33 +06:00
shadmansaleh 33defeffb5 feat: Allow function as diagnostics source 2021-08-17 00:17:56 +06:00
shadmansaleh d360039969 fix(filename): include window_width to space estimation & expose
shorting_target option

setting shorting target to 0 disables path shorting
closes #8

Co-authored-by: NullVoxPopuli <LPSego3+dev@gmail.com>
2021-08-14 21:24:48 +06:00
shadmansaleh fdb4d35507 doc: Update docs for default theme and auto 2021-08-14 14:39:10 +06:00
shadmansaleh dd2236cc3b Mention tsbline.nvim & nvim-bufferline in docs for tabline 2021-08-09 16:36:52 +06:00
shadmansaleh 6aecf4a341 feat: Expose current config with lualine.get_config() 2021-08-04 07:13:37 +06:00
shadmansaleh ea2432cc1e feat: Add source option to diff
It allows you to easily integrate external source for diff count.
If user has some other plugin keeping track of diff counts. There's
no reason for lualine to make same calculations again . It can just
reuse them. But lualine knows nothing about how other plugin exposes
their api so user will have to glue them together with this option.
2021-08-03 17:41:37 +06:00
shadmansaleh fd5f635f4f doc: Remove docs for component specific transitional separator
Keep it as experimental feature for now . It requires more testing
2021-08-02 19:40:14 +06:00
shadmansaleh f60bec0969 feat: Add update_in_insert option to diagnostics component 2021-07-25 13:48:50 +06:00
shadmansaleh 438ab4e468 Feat: Allow transitional separators to be set on component basis 2021-07-25 12:41:07 +06:00
shadmansaleh 1d40e34aef Refactor: filetype icon and add disable_text option 2021-07-25 12:39:20 +06:00
David Ruiz 9726824f1d
docs: fixed typo (#262)
* Typo in docs

* Update README.md
2021-05-27 19:53:27 +02:00
Tim Bedard 2aaf434094
feat: add separate hint diagnostic (#241)
* add separate hint diagnostic

* change to lightbulb icon
2021-05-25 22:13:43 +02:00
shadmansaleh 7fc7175ed6 Add docs 2021-05-21 11:30:14 +06:00
shadmansaleh a560209c24 Refractor filetype and add disable_text option 2021-05-21 11:23:09 +06:00
hubert 9d9ee2d60e feat: user defined extensions 2021-05-14 20:24:54 +02:00
Hubert Pelczarski 292609e3ad
docs: vimscript removal prep (#243) 2021-05-13 23:19:11 +02:00
Hubert Pelczarski e083bf9576
docs: update README.md & lualine.txt (#239)
* docs: updated luline.txt

* docs: updated lualine.txt tags

* docs: removed whitespaces from lualine.txt

* docs: updated README.md to match lualine.txt

* docs: added separators to readme

* docs: changes options section to provide examples instead of table

* docs: fixed wrong comment in options

* docs: made lualine.txt consistent with readme.md

* docs: removed notice about theme mirroring

* docs: changes tags structure
2021-05-13 21:01:37 +02:00
Hubert Pelczarski 31de50919a
feat: quickfix extension (#229)
* feat: quickfix extension
2021-05-11 21:22:58 +02:00
Jonathan Gin bfae320155
feat: color filetype icons when using nvim-devicons (#222) 2021-05-11 14:55:18 +02:00
Hubert Pelczarski 73a6c8fadf
feat: dynamic shortening for filetype (#224)
* feat: dynamic shortening for filetype

* feat: redraw statusline on VimResized

Co-authored-by: NullVoxPopuli <LPSego3+dev@gmail.com>
Co-authored-by: shadmansaleh <shadmansaleh3@gmail.com>
2021-05-11 12:47:09 +02:00
Hubert Pelczarski 82826ef661
refactor: moved loading to new module (#182)
* refactor: moved loading to new module
* refactor: check_single_separator
* refactor: simplified separator fixing
* refactor: tests/ -> lua/tests/
* refactor: moved to nvim_err_writeln for errors

* feat: moved config parsing to config.lua
* feat: get config directly from config module
* feat: added load_all function

* tests: config parsing tests

* added assert to luacheck globals
2021-05-09 23:11:18 +02:00
Shadman 4c3d76d9cf
Feat: Disable lualine om specific buffer (#206)
Adding a new option in options table named `disabled_filetypes` .
It's a list of filetypes . If current filetyoe is on the list
statusline will be disabled.
2021-05-02 23:16:03 +06:00
Tim Bedard e6cc09c2e9
feat(filename): add support for custom filename symbols (modified, readonly) (#185)
* feat(filename): add support for custom filename symbols (modified, readonly)

* update docs
2021-04-20 22:25:25 +06:00
shadmansaleh 5647a845bb Doc: Document theme tweeking 2021-04-12 21:59:56 +06:00
shadmansaleh 77c4c47482 Enhance: Cleanup eval_lua component and document it 2021-04-12 21:59:55 +06:00
shadmansaleh 9e957e341e Feat: Allow color option to accept highlight group 2021-04-12 21:59:55 +06:00
shadmansaleh 7c6d1f9074 Update options section of docs . 2021-04-12 21:59:50 +06:00
shadmansaleh d6758af65b Feat: Add condition option 2021-04-12 21:51:31 +06:00
Hubert Pelczarski 00186432d3
docs: updated lualine.txt (#171)
* docs: updated lualine.txt

* docs: fixed typo
2021-04-12 17:04:32 +02:00
Johannes Wienke 37dfbe787c
docs: comparism -> comparison (#159) 2021-04-07 02:45:50 +02:00
Yusei Ueno a2721e5ada
feat: add diagnostic sources option vim_lsp (#151) 2021-03-29 16:53:19 +02:00
hoob3rt f80d5adb41 docs: fix lualine.txt separator disable snippet 2021-03-19 03:53:59 +01:00
Shadman 332f488e24
feat: add tabline support (#92) 2021-03-06 16:03:00 +01:00
Shadman 8624f7c14e
Feat: add configuration in viml and status function (#114) 2021-03-02 13:58:34 +01:00
JINNOUCHI Yasushi e4723362c4
feat: enable to set symbols for diff component (#116)
Changes logic to store diffs in `git_diff` because the original has
stored them in a list:

```
{1, 2, 3} => {added = 1, modified = 2, removed = 3}
```
2021-03-02 01:10:23 +01:00
Shadman f47f68cee6
feat: drop signify dependency (added diff component) (#87) 2021-02-23 13:54:04 +01:00
JINNOUCHI Yasushi 7115aa8f8b
feat: customize symbols for the diagnostics component (#112) 2021-02-22 12:43:51 +01:00
Shadman 1c44781835
docs: added diagnostics docs to lualine.txt(#111) 2021-02-22 04:56:20 +01:00
Shadman 202487d2ef
feat: powerline like section seperators (#94) 2021-02-20 04:21:05 +01:00
Shadman 6af9932d89
fix: tags not wrking properly in docs (#102)
'-' was acting as a word separator so replaced it with '_'
2021-02-18 18:07:29 +01:00
Shadman 0dd0a23cac
feat: add colors to signify (#61)
Co-authored-by: hoob3rt <pelczarskihubert@gmail.com>
2021-02-17 19:29:50 +01:00
Shadman 395d7cbb69
fix: filename component 2021-02-16 18:35:56 +01:00
Shadman 20d7f33ef9
feat: adding component specific options (#60) 2021-02-15 19:09:12 +01:00
Shadman d133236761
Fix lualine not appearing on :help (#91) 2021-02-15 19:06:45 +01:00
Shadman 8a4baa804b
Added other sources for component configuration (#53) 2021-02-10 11:40:29 +01:00
Shadman 6687c9be63
Add Docs (#90) 2021-02-09 15:27:42 +01:00