bufferline as plugin
This commit is contained in:
parent
308b2b77dc
commit
6f287c3733
2 changed files with 47 additions and 20 deletions
|
@ -242,25 +242,25 @@ require('lazy').setup({
|
||||||
-- keys can be used to configure plugin behavior/loading/etc.
|
-- keys can be used to configure plugin behavior/loading/etc.
|
||||||
--
|
--
|
||||||
-- Use `opts = {}` to force a plugin to be loaded.
|
-- Use `opts = {}` to force a plugin to be loaded.
|
||||||
{
|
-- {
|
||||||
'akinsho/bufferline.nvim',
|
-- 'akinsho/bufferline.nvim',
|
||||||
opts = {
|
-- opts = {
|
||||||
options = {
|
-- options = {
|
||||||
mode = "buffers",
|
-- mode = "buffers",
|
||||||
themable = true,
|
-- themable = true,
|
||||||
color_icons = true,
|
-- color_icons = true,
|
||||||
offsets = {
|
-- offsets = {
|
||||||
{
|
-- {
|
||||||
filetype = "neo-tree",
|
-- filetype = "neo-tree",
|
||||||
text = "File Explorer",
|
-- text = "File Explorer",
|
||||||
text_align = "left",
|
-- text_align = "left",
|
||||||
separator = true,
|
-- separator = true,
|
||||||
}
|
-- }
|
||||||
},
|
-- },
|
||||||
|
--
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
|
|
||||||
-- Here is a more advanced example where we pass configuration
|
-- Here is a more advanced example where we pass configuration
|
||||||
-- options to `gitsigns.nvim`. This is equivalent to the following Lua:
|
-- options to `gitsigns.nvim`. This is equivalent to the following Lua:
|
||||||
|
@ -953,7 +953,9 @@ require('lazy').setup({
|
||||||
require 'kickstart.plugins.autopairs',
|
require 'kickstart.plugins.autopairs',
|
||||||
require 'kickstart.plugins.neo-tree',
|
require 'kickstart.plugins.neo-tree',
|
||||||
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
||||||
{'akinsho/bufferline.nvim', version = "*", dependencies = 'nvim-tree/nvim-web-devicons'}
|
|
||||||
|
-- My plugins
|
||||||
|
require 'kickstart.plugins.bufferline',
|
||||||
|
|
||||||
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
||||||
-- This is the easiest way to modularize your config.
|
-- This is the easiest way to modularize your config.
|
||||||
|
|
25
nvim/lua/kickstart/plugins/bufferline.lua
Normal file
25
nvim/lua/kickstart/plugins/bufferline.lua
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
-- bufferline
|
||||||
|
|
||||||
|
return {
|
||||||
|
'akinsho/bufferline.nvim',
|
||||||
|
version = '*',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-tree/nvim-web-devicons',
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
options = {
|
||||||
|
mode = "buffers",
|
||||||
|
themable = true,
|
||||||
|
color_icons = true,
|
||||||
|
offsets = {
|
||||||
|
{
|
||||||
|
filetype = "neo-tree",
|
||||||
|
text = "File Explorer",
|
||||||
|
text_align = "left",
|
||||||
|
separator = true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue