Commit Graph

109 Commits

Author SHA1 Message Date
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
zeertzjq ee4e69ba24
doc: document toggleterm extension (#60) 2021-09-19 16:13:02 +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
shadmansaleh fcee105681 doc: Document breaking changes in BREAKING_CHANGES.md 2021-09-17 08:49:29 +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
Dheepak Krishnamurthy 2ffdff3faf
Fix spacing and typo (#47) 2021-09-14 03:41:19 +00:00
Dheepak Krishnamurthy 2c4e8b367f
Generate docs from README.md using pandoc (#45)
* Add docs.yml to generate docs from README.md using pandoc

Co-authored-by: Dheepak Krishnamurthy <me@kdheepak.com>

Co-authored-by: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com>
2021-09-14 03:33:18 +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
Lokesh Krishna 146ec73887
Add bubbles config example (#26)
Co-authored-by: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com>
2021-08-30 22:00:48 +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 017620b847 chore(doc): mention discussions and wiki in Readme 2021-08-22 15:25:31 +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 7f02a3a292 Include evil_lualine config in examples/ and fix warnings in evil_lualine 2021-08-14 01:36:14 +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 Pelczarski 2c2876ae0c
docs: updated screenshot width (#252) 2021-05-19 13:44:38 +02:00
hubert 496b2ef3b5 Revert "docs: updated image width in THEMES.md & README.md"
This reverts commit 87084286d1.
2021-05-19 13:30:28 +02:00
hubert 87084286d1 docs: updated image width in THEMES.md & README.md 2021-05-19 13:29:39 +02:00
hubert 9d9ee2d60e feat: user defined extensions 2021-05-14 20:24:54 +02:00
Hubert Pelczarski a65168662e
Update README.md (#245) 2021-05-14 14:19:54 +02:00
Hubert Pelczarski 292609e3ad
docs: vimscript removal prep (#243) 2021-05-13 23:19:11 +02:00
Hubert Pelczarski d43a459c06
Update README.md (#240) 2021-05-13 21:08:36 +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
Jonathan Gin dc2c711a53
Fix typos in README (#219)
`Tweeking` -> `Tweaking`
`variabke` -> variable`
2021-05-09 13:42:49 +06: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