1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 11:38:00 +00:00

[neovim] Update deprecated functions from lualine.lua

This commit is contained in:
Daniel Carrillo 2024-06-11 19:21:15 +02:00
parent c76596f563
commit 9a556ca42e
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16

View File

@ -25,14 +25,14 @@ local lsp_progress = {
} }
local spaces = function() 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: " local title = "spaces: "
if not expandtab then if not expandtab then
title = "tab: " title = "tab: "
end end
return title .. vim.api.nvim_buf_get_option(0, "shiftwidth") return title .. vim.api.nvim_get_option_value("shiftwidth", { buf = 0 })
end end
local venv = function() local venv = function()