Skip to content

Commit

Permalink
Update feline.lua (#442)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nkarl authored Jul 22, 2024
1 parent 7afb230 commit 6d69bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/feline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 6d69bf6

Please sign in to comment.