Skip to content

Is it possible to lazyload overseer and also be part of the lualine? #353

Closed Answered by dhruvinsh
dhruvinsh asked this question in Q&A
Discussion options

You must be logged in to vote

thank you for looking into it, but solved the brain teaser puzzle.

-- overseer.lua file
return {
  "stevearc/overseer.nvim",
  cmd = { "OverseerClose", "OverseerOpen", "OverseerRun", "OverseerToggle" },
  config = function(_, opts)
    local overseer = require("overseer")
    overseer.setup(opts)
    do
      local ok, lualine = pcall(require, "lualine")
      if not ok then
        return
      end
      local lualine_cfg = lualine.get_config()
      table.insert(lualine_cfg.sections.lualine_x, 1, "overseer")
      lualine.setup(lualine_cfg)
    end
  end,
}

-- lualine.lua file
return {
  "nvim-lualine/lualine.nvim",
  opts = {},
}

with index based table insert I still keep the overseer

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dhruvinsh
Comment options

Answer selected by dhruvinsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants