move most important config to ansible
This commit is contained in:
33
roles/nvim/files/lua/config/plugins/bufferline.lua
Normal file
33
roles/nvim/files/lua/config/plugins/bufferline.lua
Normal file
@ -0,0 +1,33 @@
|
||||
return {
|
||||
'akinsho/bufferline.nvim',
|
||||
lazy = false,
|
||||
version = '*',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function ()
|
||||
local bufferline = require('bufferline')
|
||||
bufferline.setup({
|
||||
options = {
|
||||
persist_buffer_sort = true,
|
||||
hover = {
|
||||
enabled = true,
|
||||
delay = 200,
|
||||
reveal = {'close'}
|
||||
},
|
||||
offsets = {
|
||||
{
|
||||
filetype = "NvimTree",
|
||||
text = "File Explorer",
|
||||
highlight = "Directory",
|
||||
separator = true,
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
local map = vim.keymap.set
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
map('n', '<A-Left>', '<cmd>BufferLineCyclePrev<cr>', opts)
|
||||
map('n', '<A-Right>', '<cmd>BufferLineCycleNext<cr>', opts)
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user