shadmansaleh
b7c0a2aeb1
fix: handle nil error in diff component
...
closes #74
2021-10-02 15:08:33 +06:00
shadmansaleh
846e5bdabf
fix(extension): fix some extension showing a section in whole line
...
For now use a dummy component to lualine_x on extensions that only define
lualine_a. This will let the renderer know right sections do exist.
closes #73
2021-10-01 19:54:57 +06:00
Jim Tittsler
05314de43a
fix doc typos ( #72 )
2021-09-28 14:05:10 +06:00
github-actions[bot]
4353afd1de
chore: formated with stylua ( #69 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-27 18:06:25 +06:00
CantoroMC
05d6a13369
enhance: improved notices.show_notices ( #70 )
...
- Prefer use of lua functions instead of vim.cmd
- Added buffer and window options
- Moved from append to appendbufline
2021-09-27 18:04:54 +06:00
shadmansaleh
20a87ac78c
fix: typo + make notice buffer not modifiable
...
closes #68
2021-09-27 14:44:44 +06:00
shadmansaleh
69b5351147
enhance: use a smaller icon for modified buffer in buffers component
2021-09-26 06:22:26 +06:00
Glenn Waters
5785d4b47f
enhance: use table to map mode to hl group ( #67 )
...
I believe a hash is more efficient than a multiple comparison if. The code is also drier, no replication of the concatenation line of code.
2021-09-26 06:15:22 +06:00
Shadman
d24beddcb6
chore: update README.md
2021-09-25 15:51:46 +06:00
Shadman
6dd1a0d862
chore(gituub): update stale labels
2021-09-24 23:19:49 +06:00
shadmansaleh
8f647f7e5a
chore: add contributors to README.md
2021-09-23 13:29:41 +06:00
shadmansaleh
1143dc184a
chore: add config for generated-files-bot
2021-09-23 12:50:54 +06:00
shadmansaleh
d786e1816d
chore: add config for github stale
2021-09-23 12:19:00 +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
904f9df637
refactor: replace rtp_searcher with nvim_get_runtime_file ( #65 )
2021-09-20 20:35:14 +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
Dheepak Krishnamurthy
df1ac83a96
chore: Fix typo in github issue template ♻️ ( #64 )
2021-09-20 10:28:43 +06:00
zeertzjq
fa3f8c33ca
feat: add support for modes vs, Vs, CTRL-Vs ( #62 )
2021-09-20 09:57:41 +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
zeertzjq
ee4e69ba24
doc: document toggleterm extension ( #60 )
2021-09-19 16:13:02 +06:00
shadmansaleh
260133ce63
fix: wrong highlights on inactive mode with last commit
2021-09-19 12:20:07 +06:00
shadmansaleh
7147989f5f
enhance: color middle of left and right statusline with lualine_c color even when section c and x are absent
2021-09-19 11:52:42 +06:00
Zachary Churchill
ebea516ac7
fix: theme not loading in neovim-nightly ( #59 )
2021-09-19 08:25:08 +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
f7702d8841
enhance: check for new diagnostics highlight groups
...
- Now DiagnosticError, DiagnosticWarn, DiagnosticInfo, DiagnosticHint
are also consider3d for default highlight in diagnostics component.
- Moved getHl from auto theme to utils as extract_color_from_hllist
closes #56
2021-09-17 15:28:30 +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
8f866213e7
fix: typos
2021-09-17 08:59:48 +06:00
shadmansaleh
fcee105681
doc: Document breaking changes in BREAKING_CHANGES.md
2021-09-17 08:49:29 +06:00
Shadman
16a23fb079
Fix branch disapearing in evil_lualine
...
Whether file is in git workspace is checked by the branch component and that check handles more edge cases so no need for cond in branch.
closes #54
2021-09-16 20:27:33 +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
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
Matthew Toohey
1f4df948c4
fix: handle capitalized letters in pywal colors ( #40 )
...
Co-authored-by: mtoohey31 <mtoohey31@users.noreply.github.com>
2021-09-09 05:25:31 +06:00
shadmansaleh
1e72ae9ae3
fix: fix wrong trans sep when only section a and z are present
2021-09-08 20:53:23 +06:00
shadmansaleh
3d5dd6b829
fix(ci): Neovims nighly releases are currently broken comment it out
2021-09-07 18:39:02 +06:00
shadmansaleh
b2963593c4
fix(ci): run tests on nightly too
2021-09-07 18:35:52 +06:00
shadmansaleh
0e0cf68eba
Revert: enahce: sync diff&branch component to buffer based of bufnr instead of BufEnter
...
functionally reverted commit 2b90200998
nvim gives first scratch buffer(when opened without a file) and the
first opened buffer bufnr 1 . That's why we can't relay completely
on bufnr being different to indicate file is different. So back to
BufEnter autocommands.
closes #38
2021-09-06 18:20:36 +06:00
github-actions[bot]
a26ffaa8ed
chore: formated with stylua ( #36 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-04 23:18:50 +06:00
Matthew Toohey
7185c61e9e
feat: pywal theme ( #35 )
...
* feat: pywal theme
* docs: add pywal screenshots
Co-authored-by: mtoohey31 <mtoohey31@users.noreply.github.com>
2021-09-04 23:17:19 +06:00
Shadman
6e19d4c952
chore: Update CI ( #33 )
...
- Run test on both neovim 0.5 and nightly
- Include lint in main CI run
2021-09-04 11:41:04 +06:00
github-actions[bot]
db448f41e6
chore: formated with stylua ( #32 )
...
Apply initial stylua format
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-04 00:28:20 +06:00
Shadman
4042e837f8
chore: use stylua for formating
...
* Switch to stylua for formating
* Change lua-format ignore to stylua ignore.
* Add workflow for formating with stylua
2021-09-04 00:20:34 +06:00
shadmansaleh
b2fcf50742
enhance: Reload lualine for ColorScheme so auto can self update
2021-09-03 20:16:54 +06:00