Skip to content

Commit 6d69bf6

Browse files
authored
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.
1 parent 7afb230 commit 6d69bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/feline.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ local c = {
367367
},
368368
lsp_status = {
369369
provider = function()
370-
return vim.tbl_count(vim.lsp.buf_get_clients(0)) == 0 and "" or ""
370+
return vim.tbl_count(vim.lsp.get_clients { bufnr = 0 }) == 0 and "" or ""
371371
end,
372372
hl = "UserSLStatus",
373373
left_sep = { str = "", hl = "UserSLStatusBg", always_visible = true },

0 commit comments

Comments
 (0)