mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 20:10:03 +02:00
nvim: update statusline config
This commit is contained in:
parent
058b658b85
commit
9bade906b1
1 changed files with 16 additions and 8 deletions
|
|
@ -6,6 +6,14 @@ local function indent_settings()
|
||||||
.. (vim.bo.shiftwidth == 0 and vim.bo.tabstop or vim.bo.shiftwidth)
|
.. (vim.bo.shiftwidth == 0 and vim.bo.tabstop or vim.bo.shiftwidth)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function is_not_popup()
|
||||||
|
local types = {
|
||||||
|
"TelescopePrompt"
|
||||||
|
}
|
||||||
|
|
||||||
|
return not vim.tbl_contains(types, vim.bo.filetype)
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
|
@ -57,10 +65,7 @@ return {
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
{
|
"mode",
|
||||||
"mode",
|
|
||||||
separator = "|"
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
lualine_b = {
|
lualine_b = {
|
||||||
{"branch"},
|
{"branch"},
|
||||||
|
|
@ -98,6 +103,7 @@ return {
|
||||||
lualine_c = {
|
lualine_c = {
|
||||||
{
|
{
|
||||||
"filename",
|
"filename",
|
||||||
|
cond = is_not_popup,
|
||||||
path = 1,
|
path = 1,
|
||||||
symbols = vim.tbl_deep_extend("force", icons.file_status, {
|
symbols = vim.tbl_deep_extend("force", icons.file_status, {
|
||||||
unnamed = "",
|
unnamed = "",
|
||||||
|
|
@ -105,14 +111,16 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
"filetype",
|
{
|
||||||
|
"filetype",
|
||||||
|
cond = is_not_popup
|
||||||
|
},
|
||||||
"fileformat",
|
"fileformat",
|
||||||
-- '(vim.bo.expandtab and "SPC" or "TAB") .. " " .. (vim.bo.shiftwidth == 0 and vim.bo.tabstop or vim.bo.shiftwidth)',
|
|
||||||
indent_settings,
|
indent_settings,
|
||||||
},
|
},
|
||||||
lualine_y = {
|
lualine_y = {
|
||||||
"location",
|
"location",
|
||||||
"progress",
|
"progress",
|
||||||
},
|
},
|
||||||
lualine_z = {},
|
lualine_z = {},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue