mirror of
https://github.com/cap153/nvim.git
synced 2025-12-27 11:45:30 +08:00
添加透明插件
This commit is contained in:
parent
ca4d0cf24a
commit
289c4daaa4
6 changed files with 94 additions and 73 deletions
|
|
@ -1,13 +1,25 @@
|
|||
-- ===
|
||||
-- === 文件缓冲标签栏
|
||||
-- ===
|
||||
|
||||
local map = require("core.keymap")
|
||||
-- 在标签之间移动
|
||||
map:cmd('tn', 'BufferLineCyclePrev')
|
||||
map:cmd('ti', 'BufferLineCycleNext')
|
||||
|
||||
-- 移动标签的位置
|
||||
map:cmd('tmn', 'BufferLineMovePrev')
|
||||
map:cmd('tmi', 'BufferLineMoveNext')
|
||||
|
||||
-- 关闭标签,貌似是neovim自带的,完整命令bdelete
|
||||
map:cmd('tq', 'bd')
|
||||
|
||||
return {
|
||||
"romgrk/barbar.nvim",
|
||||
dependencies = {
|
||||
"lewis6991/gitsigns.nvim", -- OPTIONAL: for git status
|
||||
"nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons
|
||||
},
|
||||
init = function()
|
||||
vim.g.barbar_auto_setup = true
|
||||
end,
|
||||
opts = {
|
||||
},
|
||||
version = "^1.0.0", -- optional: only update when a new 1.x version is released
|
||||
'akinsho/bufferline.nvim',
|
||||
version = "*",-- 安装最新的稳定版
|
||||
dependencies = 'kyazdani42/nvim-web-devicons',
|
||||
config = function()
|
||||
require("bufferline").setup {}
|
||||
end
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue