plugin heaven
This commit is contained in:
parent
67f33f32a3
commit
4384dfa118
18 changed files with 713 additions and 725 deletions
27
lua/plugins/bufferline.lua
Normal file
27
lua/plugins/bufferline.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
-- Keybinds for cycling through buffers (left and right)
|
||||
vim.api.nvim_set_keymap('n', '<S-h>', '<cmd>BufferLineCyclePrev<CR>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<S-l>', '<cmd>BufferLineCycleNext<CR>', { noremap = true, silent = true })
|
||||
|
||||
return {
|
||||
'akinsho/bufferline.nvim',
|
||||
version = '*',
|
||||
dependencies = 'nvim-tree/nvim-web-devicons',
|
||||
config = function()
|
||||
vim.opt.termguicolors = true
|
||||
require('bufferline').setup {
|
||||
options = {
|
||||
offsets = {
|
||||
{
|
||||
filetype = 'neo-tree',
|
||||
text = function()
|
||||
return vim.fn.getcwd()
|
||||
end,
|
||||
-- text = 'File Explorer',
|
||||
highlight = 'Directory',
|
||||
separator = true, -- use a "true" to enable the default, or set your own character
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue