vim/lualine: rename parts -> my
This commit is contained in:
parent
d96cc5b1d8
commit
f7826d81c8
1 changed files with 6 additions and 6 deletions
|
@ -56,7 +56,7 @@ local config = function()
|
||||||
local window_is_wide = window_is_at_least(80)
|
local window_is_wide = window_is_at_least(80)
|
||||||
local window_is_medium = window_is_at_least(50)
|
local window_is_medium = window_is_at_least(50)
|
||||||
|
|
||||||
local parts = {
|
local my = {
|
||||||
paste = {
|
paste = {
|
||||||
function() return '' end,
|
function() return '' end,
|
||||||
color = { bg = '#bbaa00' },
|
color = { bg = '#bbaa00' },
|
||||||
|
@ -139,17 +139,17 @@ local config = function()
|
||||||
|
|
||||||
local inactive_sections = {
|
local inactive_sections = {
|
||||||
lualine_a = {},
|
lualine_a = {},
|
||||||
lualine_b = { parts.visual_multi, parts.branch },
|
lualine_b = { my.visual_multi, my.branch },
|
||||||
lualine_c = { diff, parts.filename, parts.status },
|
lualine_c = { diff, my.filename, my.status },
|
||||||
lualine_x = { parts.filetype },
|
lualine_x = { my.filetype },
|
||||||
lualine_y = { parts.fileformat, 'progress' },
|
lualine_y = { my.fileformat, 'progress' },
|
||||||
lualine_z = { 'location' },
|
lualine_z = { 'location' },
|
||||||
}
|
}
|
||||||
|
|
||||||
local concat = require('fschauen.util').concat
|
local concat = require('fschauen.util').concat
|
||||||
|
|
||||||
local active_sections = vim.tbl_extend('force', inactive_sections, {
|
local active_sections = vim.tbl_extend('force', inactive_sections, {
|
||||||
lualine_a = concat({ parts.paste, parts.mode }, inactive_sections.lualine_a),
|
lualine_a = concat({ my.paste, my.mode }, inactive_sections.lualine_a),
|
||||||
lualine_x = concat({ 'diagnostics' }, inactive_sections.lualine_x),
|
lualine_x = concat({ 'diagnostics' }, inactive_sections.lualine_x),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue