style(nvim): lualine
This commit is contained in:
parent
c7deca5a68
commit
33101ebb85
@ -12,7 +12,7 @@ opt.relativenumber = true
|
|||||||
opt.clipboard:append { 'unnamed' }
|
opt.clipboard:append { 'unnamed' }
|
||||||
opt.clipboard:append { 'unnamedplus' }
|
opt.clipboard:append { 'unnamedplus' }
|
||||||
|
|
||||||
opt.shortmess:append{a = true, s = true, I = true, c = true}
|
opt.shortmess:append{a = true, s = true, I = true, c = true, S = true}
|
||||||
|
|
||||||
opt.cmdheight = 0
|
opt.cmdheight = 0
|
||||||
vim.wo.signcolumn = "yes:1"
|
vim.wo.signcolumn = "yes:1"
|
||||||
|
|||||||
@ -44,11 +44,7 @@ return {
|
|||||||
{
|
{
|
||||||
'vim.fn.getcwd()',
|
'vim.fn.getcwd()',
|
||||||
fmt = function(str)
|
fmt = function(str)
|
||||||
local res = str
|
return str:gsub(os.getenv("HOME"), "~")
|
||||||
|
|
||||||
res = str:gsub(os.getenv("HOME"), "~")
|
|
||||||
|
|
||||||
return res
|
|
||||||
end,
|
end,
|
||||||
color = { fg='white', gui='bold' },
|
color = { fg='white', gui='bold' },
|
||||||
padding = { left = 1, right = 0 }
|
padding = { left = 1, right = 0 }
|
||||||
@ -72,8 +68,8 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_x = {'GET_FORMATTED_VIRTUAL_ENV()', 'DETECT_INDENT_TYPE()', 'filetype'},
|
lualine_x = {'GET_FORMATTED_VIRTUAL_ENV()', 'DETECT_INDENT_TYPE()', 'filetype'},
|
||||||
lualine_y = {'progress'},
|
lualine_y = {'searchcount'},
|
||||||
lualine_z = {'location'},
|
lualine_z = {'location', 'selectioncount'},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user