mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 01:08:00 +00:00
[neovim] Update deprecated functions from lualine.lua
This commit is contained in:
parent
c76596f563
commit
9a556ca42e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user