Commit graph

42 commits

Author SHA1 Message Date
Rafael Madriz
6f8b96de9d
refactor(lualine): use string.format to return unique names (#4193)
To purpose of this change is to make code more redeable by making
`unique_client_names` a string with the unique names instead of a table
and later on calling `table.concat`. Then use `string.format` instead of
string concatenation with `..`
2023-05-25 08:12:55 +02:00
Rafael Madriz
55f048aaae
fix(lualine): use get_active_clients instead of deprecated function (#4136)
* fix(lualine): use `get_active_clients` instead of deprecated function

`vim.lsp.get_active_clients()` accepts a table to filter returned
clients by id, bufnr and name. In this case when want to get clients for
current buffer, if bufnr is not given then it defaults to current
buffer, so need to pass anything here.

See `help vim.lsp.buf_get_clients()`

* refactor(lualine): simplify LSP component

`vim.lsp.get_active_clients` always returns a table, if that table is
empty, there's no clients attached, hence return appropriate message. No
need to use `next()`

Remove all the complicated logic with the `msg` parameter, no argument
is passed in any of the places that component is used, no need to have it.

* fix: only get clients attached to current buffer

---------

Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
2023-05-07 11:47:34 +02:00
LostNeophyte
b9e1952421
refactor(alpha): remove laststatus and tabline autocmds (#3809) 2023-02-04 16:24:56 +01:00
Christian Chiarulli
57c159fe3c feat: only use orange branch for lunar colorscheme 2022-11-04 13:43:30 -04:00
Christian Chiarulli
be9ea09df1 chore: don't override colors for location 2022-11-04 13:36:22 -04:00
Christian Chiarulli
8794ff76f5 chore: remove separator 2022-11-04 13:32:50 -04:00
Christian Chiarulli
5ba80b10cf
feat: use our own colorscheme, decouple from tokyonight (#3378)
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
2022-11-04 12:57:24 -04:00
Christian Chiarulli
6ea5341a84
fix: statusline and breadcrumbs hls reload with config reload (#3376) 2022-10-31 12:26:13 -04:00
ChristianChiarulli
2a3b9510bc fix: copilot background should matcha statusline 2022-10-15 22:29:10 -04:00
ChristianChiarulli
c8ef47622d fix(lualine): globalstatus=true by default 2022-10-09 03:49:45 -04:00
Christian Chiarulli
9925edf79e
fix(lualine): guard setup on install (#3185) 2022-10-08 22:14:21 +00:00
Christian Chiarulli
dcdfbf1727
feat: use icon for copilot in statusline (#3173) 2022-10-07 00:52:37 -04:00
kylo252
e5bcf01c75
refactor: more deliberate reload (#3133) 2022-10-04 13:23:52 -04:00
Philippe Richard
8767a17b5e
feat: move icons to a single icons file (#3115) 2022-10-02 23:48:23 -04:00
Christian Chiarulli
bea690fc16 fix: use columns instead of winwidth 2022-09-21 21:21:00 -04:00
Christian Chiarulli
3803fff758 fix: lualine slightly better 2022-09-21 21:18:44 -04:00
Christian Chiarulli
2ecdc8ecbf fix: improve lualine inactive 2022-09-21 21:12:15 -04:00
Christian Chiarulli
2cfb55ddb6 feat(lualine): improvements 2022-09-21 17:58:52 -04:00
Christian Chiarulli
526c010c80 fix: lualine git signs padding 2022-09-21 14:41:48 -04:00
ChristianChiarulli
4a48232ee0 fix(lualine): little more padding 2022-09-21 14:07:31 -04:00
ChristianChiarulli
efa466a99a fix: lualine filetype padding 2022-09-21 14:05:19 -04:00
ChristianChiarulli
21311b54a5 fix: plain tokyonight 2022-09-21 14:00:44 -04:00
Christian Chiarulli
5948c30362 fix: make sure to use global in lualine 2022-09-20 23:03:34 -04:00
ChristianChiarulli
845c6a4fe7 feat(lualine): update statusline 2022-09-20 16:03:27 -04:00
lvimuser
ce621c1cfe
chore: remove unnecessary code (#2923) 2022-08-29 14:47:21 +02:00
Myles Mo
3bc52f9988
fix(lualine): set icon color according to the status of treesitter (#2754)
Co-authored-by: emxxjnm <emxxjnm@example>
2022-08-09 13:32:35 +02:00
Myles Mo
ecd3441287
fix(lualine): unique buf client names (#2683)
Co-authored-by: emxxjnm <emxxjnm@example>
2022-06-23 10:32:15 +04:30
Abouzar Parvan
6a66e39f29
feat(icons): make it possible to disable icons (#2529) 2022-04-28 19:00:39 +04:30
Carlos H
10c7753d8e
fix(lualine): color theme gaps in some components (#2465) 2022-04-15 05:40:03 +04:30
kylo252
c946ddda81
feat: add alpha.nvim integration (#1906) 2022-03-19 20:02:45 +01:00
kylo252
7192b28a24
fix(lualine): conditional theme loading (#2363) 2022-03-19 14:43:07 +01:00
Abouzar Parvan
5a8ccd9fcb
chore(plugins): let users enjoy the new global statusline (#2362) 2022-03-19 16:23:22 +03:30
Jieru Mei
f7cae318e6
fix(lualine): use 1-char width symbol for changed (#2246) 2022-02-04 19:25:11 +03:30
Jieru Mei
4378a775f1
fix(lualine): compacter size for treesitter icon (#2247) 2022-02-04 12:13:36 +03:30
Xavier Young
68e841f549
fix(lualine): add space to diff components (#1897) 2022-02-04 12:12:11 +03:30
kylo252
91077623f0
refactor(info): use new null-ls api for sources (#2125) 2022-01-01 14:25:23 +01:00
Abouzar Parvan
cbb94752ae
feat: bump plugin versions (#2064)
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
2021-12-11 09:46:36 +01:00
christianchiarulli
044b53a6fe feat: decrease hide in width limit for lualine 2021-11-22 15:16:05 -05:00
christianchiarulli
f3d7a94d8c feat: improved LSP grouping in lualine 2021-11-22 15:14:18 -05:00
Fabian Preuß
20e5e50797
fix(lualine): use tabstop in spaces component when sensible (#1807) 2021-10-22 14:33:48 +03:30
kylo252
03e5760e59
fix(formatters): always select null-ls by default (#1810) 2021-10-20 20:01:51 +02:00
kylo252
52b7455741
feat: add an independent lvim namespace (#1699) 2021-10-10 21:07:41 +02:00