Skip to content
Discussion options

You must be logged in to vote

Do I set it up as a function?

Yes, with something like this:

return {
  "echasnovski/mini.statusline",
  priority = 1000,
  config = function()
    local active = function()
      -- *This* is the place that gets adjusted
      local mode, mode_hl = MiniStatusline.section_mode({ trunc_width = 100 })
      local git           = MiniStatusline.section_git({ trunc_width = 40 })
      local diff          = MiniStatusline.section_diff({ trunc_width = 75 })
      local diagnostics   = MiniStatusline.section_diagnostics({ trunc_width = 75 })
      local lsp           = MiniStatusline.section_lsp({ trunc_width = 75 })
      local filename      = MiniStatusline.section_filename({ trunc_width = 140

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@maitra
Comment options

@echasnovski
Comment options

Answer selected by maitra
@maitra
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.statusline
2 participants