Skip to content

Commit

Permalink
fix(lualine): get_clients accepts bufnr not buffer
Browse files Browse the repository at this point in the history
Signed-off-by: Jint-lzxy <[email protected]>
  • Loading branch information
Jint-lzxy committed Jan 24, 2025
1 parent e004384 commit 9ec8f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/modules/configs/ui/lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ return function()
lsp = {
function()
local buf_ft = vim.bo.filetype
local clients = vim.lsp.get_clients({ buffer = vim.api.nvim_get_current_buf() })
local clients = vim.lsp.get_clients({ bufnr = vim.api.nvim_get_current_buf() })
local lsp_lists = {}
local available_servers = {}
if next(clients) == nil then
Expand Down

0 comments on commit 9ec8f84

Please sign in to comment.