Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nut): add tab.tablist #23

Merged
merged 2 commits into from
Dec 22, 2022
Merged

feat(nut): add tab.tablist #23

merged 2 commits into from
Dec 22, 2022

Conversation

MunifTanjim
Copy link
Owner

@MunifTanjim MunifTanjim commented Dec 18, 2022

local nut = {
  buf = {
    tablist = require("nougat.nut.tab.tablist"),
  },
}

tal:add_item(nut.tab.tablist.create({
  config = {
    active_tab = nut.tab.tablist.TabItem({
      hl = { bg = "purple", fg = "white" },
      prefix = " ",
      sep_left = sep.left_lower_triangle_solid(false),
      sep_right = sep.right_lower_triangle_solid(false),
      suffix = " ",
      config = { close = "" },
    }),
    inactive_tab = nut.tab.tablist.TabItem({
      hl = { bg = "fg", fg = "bg" },
      prefix = " ",
      sep_left = sep.left_lower_triangle_solid(false),
      sep_right = sep.right_lower_triangle_solid(false),
      suffix = " ",
      config = { close = "" },
    }),
  },
}))

Peek 2022-12-23 02-23

@MunifTanjim MunifTanjim marked this pull request as ready for review December 22, 2022 20:25
@MunifTanjim MunifTanjim merged commit 979a2bd into main Dec 22, 2022
@MunifTanjim MunifTanjim deleted the feat-nut-tab-tablist branch December 22, 2022 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant