nvim lualine style
This commit is contained in:
parent
1f521d0d64
commit
27c6af704a
@ -1,8 +1,4 @@
|
|||||||
|
|
||||||
function GET_FORMATTED_CWD()
|
|
||||||
return vim.fn.getcwd():gsub(os.getenv("HOME"), "~")
|
|
||||||
end
|
|
||||||
|
|
||||||
local function get_virtual_env()
|
local function get_virtual_env()
|
||||||
return vim.fs.basename(os.getenv("VIRTUAL_ENV"))
|
return vim.fs.basename(os.getenv("VIRTUAL_ENV"))
|
||||||
end
|
end
|
||||||
@ -26,11 +22,19 @@ return {
|
|||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
|
options = {
|
||||||
|
component_separators = { left = '//', right = '' },
|
||||||
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {'mode'},
|
lualine_a = {'mode'},
|
||||||
lualine_b = {'branch', 'diff', 'diagnostics'},
|
lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||||
lualine_c = {
|
lualine_c = {
|
||||||
'GET_FORMATTED_CWD()',
|
{
|
||||||
|
'vim.fn.getcwd()',
|
||||||
|
fmt = function(str)
|
||||||
|
return str:gsub(os.getenv("HOME"), "~")
|
||||||
|
end
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'filename',
|
'filename',
|
||||||
file_status = true,
|
file_status = true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user