1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-31 10:39:25 +00:00

[neovim] Update deprecated functions from lualine.lua

This commit is contained in:
2024-06-11 19:21:15 +02:00
parent c76596f563
commit 9a556ca42e

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()