vim.opt.termguicolors = true
local bufferline = require("bufferline")
bufferline.setup{
  options = {
    separator_style = "slope",
    diagnostics = "nvim_lsp"
  },
}

vim.keymap.set("n", "<leader>q", vim.cmd.bdelete, { desc = "Close buffer" })
vim.keymap.set("n", "<leader>bl", vim.cmd.BufferLineCycleNext, { desc = "Next buffer" })
vim.keymap.set("n", "<leader>bh", vim.cmd.BufferLineCyclePrev, { desc = "Previous buffer" })
vim.keymap.set("n", "<leader>1", function () bufferline.go_to_buffer(1, true) end , { desc = "Go to buffer 1" })
vim.keymap.set("n", "<leader>2", function () bufferline.go_to_buffer(2, true) end , { desc = "Go to buffer 2" })
vim.keymap.set("n", "<leader>3", function () bufferline.go_to_buffer(3, true) end , { desc = "Go to buffer 3" })
vim.keymap.set("n", "<leader>4", function () bufferline.go_to_buffer(4, true) end , { desc = "Go to buffer 4" })
vim.keymap.set("n", "<leader>5", function () bufferline.go_to_buffer(5, true) end , { desc = "Go to buffer 5" })
vim.keymap.set("n", "<leader>6", function () bufferline.go_to_buffer(6, true) end , { desc = "Go to buffer 6" })
vim.keymap.set("n", "<leader>7", function () bufferline.go_to_buffer(7, true) end , { desc = "Go to buffer 7" })
vim.keymap.set("n", "<leader>8", function () bufferline.go_to_buffer(8, true) end , { desc = "Go to buffer 8" })
vim.keymap.set("n", "<leader>9", function () bufferline.go_to_buffer(9, true) end , { desc = "Go to buffer 9" })
vim.keymap.set("n", "<leader>0", function () bufferline.go_to_buffer(10, true) end , { desc = "Go to buffer 10" })
