Remove diff module and change order (x <-> y)

This commit is contained in:
2022-01-15 22:54:51 +03:00
parent 3c42f53b73
commit 5f0a4326d0

View File

@@ -1,9 +1,5 @@
local lualine = require("lualine")
local hide_in_width = function()
return vim.fn.winwidth(0) > 80
end
local branch = {
"branch",
icons_enabled = true,
@@ -23,13 +19,6 @@ local mode = {
"mode",
}
local diff = {
"diff",
colored = false,
symbols = { added = "", modified = "", removed = "" }, -- changes diff symbols
cond = hide_in_width,
}
local filetype = {
"filetype",
}
@@ -50,8 +39,8 @@ lualine.setup({
lualine_a = { branch, diagnostics },
lualine_b = { mode },
lualine_c = {},
lualine_x = { diff, "encoding", filetype },
lualine_y = { location },
lualine_x = { location },
lualine_y = { "encoding", filetype },
lualine_z = {},
},
})