From 7f9bd8a242f88ef562d0e7fec130352905009382 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 10 Feb 2024 23:59:40 +0530 Subject: [PATCH] setup bufferline --- after/plugin/bufferline.lua | 17 +++++++++++++++++ lua/plugins.lua | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100644 after/plugin/bufferline.lua diff --git a/after/plugin/bufferline.lua b/after/plugin/bufferline.lua new file mode 100644 index 0000000..fa0c0d2 --- /dev/null +++ b/after/plugin/bufferline.lua @@ -0,0 +1,17 @@ +vim.opt.termguicolors = true +require('bufferline').setup{ + options = { + diagnostics = "nvim_lsp", + themable = false, + offsets = { + { + filetype = "neo-tree", + text = "File Tree", + separator = true + } + }, + separator_style = "slant", + show_buffer_close_icons = false, + show_close_icon = false, + } +} diff --git a/lua/plugins.lua b/lua/plugins.lua index 3b1a4d2..14297ae 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -4,6 +4,14 @@ return require('packer').startup(function(use) use 'Mofiqul/dracula.nvim' use { 'nvim-telescope/telescope.nvim', tag = '0.1.5', requires = { {'nvim-lua/plenary.nvim'} } } + use { + 'akinsho/bufferline.nvim', + as = "bufferline.nvim", + version = '4.5.0', + requires = { + {'nvim-tree/nvim-web-devicons'} + } + } use { 'nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' } }