From 9a556ca42ecd88da759d39bcfe023067ce7ece36 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Tue, 11 Jun 2024 19:21:15 +0200 Subject: [PATCH] [neovim] Update deprecated functions from lualine.lua --- .config/nvim/lua/plugins/lualine.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index 568f95f..7c55e6d 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua @@ -25,14 +25,14 @@ local lsp_progress = { } local spaces = function() - local expandtab = vim.api.nvim_buf_get_option(0, "expandtab") + local expandtab = vim.api.nvim_get_option_value("expandtab", { buf = 0 }) local title = "spaces: " if not expandtab then title = "tab: " end - return title .. vim.api.nvim_buf_get_option(0, "shiftwidth") + return title .. vim.api.nvim_get_option_value("shiftwidth", { buf = 0 }) end local venv = function()