mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-01-10 12:36:48 +00:00
[neovim] Set lualine indicator about tabs/spaces set for the current buffer
This commit is contained in:
parent
728fbdc355
commit
847d1f9d71
@ -13,7 +13,7 @@ local diagnostics = {
|
|||||||
sections = { "error", "warn" },
|
sections = { "error", "warn" },
|
||||||
symbols = { error = " ", warn = " " },
|
symbols = { error = " ", warn = " " },
|
||||||
colored = false,
|
colored = false,
|
||||||
always_visible = true,
|
always_visible = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
local diff = {
|
local diff = {
|
||||||
@ -34,7 +34,14 @@ local location = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local spaces = function()
|
local spaces = function()
|
||||||
return "spaces: " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
local expandtab = vim.api.nvim_buf_get_option(0, "expandtab")
|
||||||
|
|
||||||
|
local title = "spaces: "
|
||||||
|
if not expandtab then
|
||||||
|
title = "tab: "
|
||||||
|
end
|
||||||
|
|
||||||
|
return title .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
||||||
end
|
end
|
||||||
|
|
||||||
local gitblame_status_ok, gitblame = pcall(require, "gitblame")
|
local gitblame_status_ok, gitblame = pcall(require, "gitblame")
|
||||||
|
Loading…
Reference in New Issue
Block a user