Skip to content

Commit

Permalink
refactor(feline):update deprecated api functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ilias777 committed Jul 9, 2024
1 parent 693f775 commit 9dd92e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/catppuccin/groups/integrations/feline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function M.get()
-- macro
components.active[1][12] = {
provider = "macro",
enabled = function() return vim.api.nvim_get_option "cmdheight" == 0 end,
enabled = function() return vim.api.nvim_get_option_value("cmdheight", { scope = "global" }) == 0 end,
hl = {
fg = sett.extras,
bg = sett.bkg,
Expand All @@ -304,7 +304,7 @@ function M.get()
-- search count
components.active[1][13] = {
provider = "search_count",
enabled = function() return vim.api.nvim_get_option "cmdheight" == 0 end,
enabled = function() return vim.api.nvim_get_option_value("cmdheight", { scope = "global" }) == 0 end,
hl = {
fg = sett.extras,
bg = sett.bkg,
Expand Down Expand Up @@ -441,7 +441,7 @@ function M.get()

components.active[3][2] = {
provider = function()
local active_clients = vim.lsp.get_active_clients { bufnr = 0 }
local active_clients = vim.lsp.get_clients { bufnr = 0 }

-- show an indicator that we have running lsps
if view.lsp.name == false and next(active_clients) ~= nil then return assets.lsp.server .. " " .. "Lsp" end
Expand Down

0 comments on commit 9dd92e2

Please sign in to comment.