mirror of
https://github.com/cap153/nvim.git
synced 2025-12-27 03:34:57 +08:00
first commit
This commit is contained in:
commit
6955e90e07
61 changed files with 3641 additions and 0 deletions
25
lua/lazy/plugins/bufferline.lua
Normal file
25
lua/lazy/plugins/bufferline.lua
Normal file
|
|
@ -0,0 +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 {
|
||||
'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