🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
Find a file
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
.github fix(tests): set up lazy.nvim in the lsp test (#4088) 2023-04-28 10:27:40 +02:00
lua/lvim fix(lualine): use get_active_clients instead of deprecated function (#4136) 2023-05-07 11:47:34 +02:00
snapshots chore: bump plugins version (#4095) 2023-04-29 13:42:33 +02:00
tests fix(tests): set up lazy.nvim in the lsp test (#4088) 2023-04-28 10:27:40 +02:00
utils feat: don't move config on install (#4129) 2023-05-06 17:34:11 +02:00
.gitignore Merge remote-tracking branch 'origin/rolling' 2022-10-17 17:29:15 +02:00
.luacheckrc feat: latest impatient updates from upstream (#3236) 2022-10-14 14:09:08 +02:00
.luarc.json fix(lsp): enforce lvim completion for lua-server (#3035) 2022-09-19 13:10:07 +02:00
.pre-commit-config.yaml feat: add commitlint CI (#1459) 2021-09-30 07:44:35 +02:00
.stylua.toml stylua is always in root 2021-07-25 14:14:05 -04:00
CHANGELOG.md chore: update changelog 2023-04-22 16:00:06 +02:00
CONTRIBUTING.md docs: use master instead of rolling in contributing.md (#4115) 2023-05-03 09:32:24 +02:00
init.lua fix: correct runtimepath order (#4124) 2023-05-07 04:36:42 -04:00
LICENSE update license 2021-03-15 10:47:00 -04:00
Makefile feat(plugins): add support for packer snapshots (#2351) 2022-03-24 16:16:38 +01:00
README.md docs: update colors for links in readme 2022-11-04 10:24:31 -04:00

lunarvim_logo_dark

Latest release Last commit License Stars Issues Repo Size Patreon donate button follow on Twitter

An IDE layer for Neovim with sane defaults. Completely free and community driven.



Install

Configure

Troubleshooting

Contribute


Showcase

demo3 info

Socials

Github Logo Discord Logo Twitter Logo Reddit Logo

Thanks to all contributors