From 6d69bf6cdbd94b3237b3d53f6fc1f8ca3e5872a4 Mon Sep 17 00:00:00 2001 From: Charles Nguyen <21993921+nkarl@users.noreply.github.com> Date: Mon, 22 Jul 2024 06:54:48 -0700 Subject: [PATCH] Update feline.lua (#442) Using `vim.lsp.buf_get_clients` and accessing the current buffer by the 0th index are deprecated in Nvim 0.12. Changed to use `vim.lsp.get_clients` and with the buffer number provided. --- misc/feline.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/feline.lua b/misc/feline.lua index 8e734c0c..7aec098c 100644 --- a/misc/feline.lua +++ b/misc/feline.lua @@ -367,7 +367,7 @@ local c = { }, lsp_status = { provider = function() - return vim.tbl_count(vim.lsp.buf_get_clients(0)) == 0 and "" or " ◦ " + return vim.tbl_count(vim.lsp.get_clients { bufnr = 0 }) == 0 and "" or " ◦ " end, hl = "UserSLStatus", left_sep = { str = "", hl = "UserSLStatusBg", always_visible = true },