Skip to main content
deleted 103 characters in body
Source Link
rofrol
  • 122
  • 5

setup inside config worked for me:

return {
  {
    "nvim-lualine/lualine.nvim",
    event = "VeryLazy",
    config = function(_, opts)
      table.insertrequire(opts.sections'lualine').lualine_a,setup {
        function()sections = {
          returnlualine_a "😄"
= function()
       end
     return )
"😄"
      -- prepend
   end,
   table.insert(opts.sections.lualine_z, 1, "location")

     lualine_z require('lualine').setup= {
        sections = {  "location",
          lualine_a = unpack(opts.sections.lualine_alualine_z),
          lualine_z = opts.sections.lualine_z},
        }
      }
    end,
  },
}

setup inside config worked for me:

return {
  {
    "nvim-lualine/lualine.nvim",
    event = "VeryLazy",
    config = function(_, opts)
      table.insert(opts.sections.lualine_a,
        function()
          return "😄"
        end
      )

      -- prepend
      table.insert(opts.sections.lualine_z, 1, "location")

      require('lualine').setup {
        sections = {
          lualine_a = opts.sections.lualine_a,
          lualine_z = opts.sections.lualine_z,
        }
      }
    end,
  },
}

setup inside config worked for me:

return {
  {
    "nvim-lualine/lualine.nvim",
    event = "VeryLazy",
    config = function(_, opts)
      require('lualine').setup {
        sections = {
          lualine_a = function()
            return "😄"
          end,
          lualine_z = {
            "location",
            unpack(opts.sections.lualine_z),
          },
        }
      }
    end,
  },
}
Source Link
rofrol
  • 122
  • 5

setup inside config worked for me:

return {
  {
    "nvim-lualine/lualine.nvim",
    event = "VeryLazy",
    config = function(_, opts)
      table.insert(opts.sections.lualine_a,
        function()
          return "😄"
        end
      )

      -- prepend
      table.insert(opts.sections.lualine_z, 1, "location")

      require('lualine').setup {
        sections = {
          lualine_a = opts.sections.lualine_a,
          lualine_z = opts.sections.lualine_z,
        }
      }
    end,
  },
}