mirror of
https://github.com/cap153/nvim.git
synced 2025-12-26 19:25:01 +08:00
更改topbar样式
This commit is contained in:
parent
a608654a0b
commit
2ca07b7ecf
2 changed files with 24 additions and 9 deletions
|
|
@ -5,7 +5,6 @@ return {
|
|||
"folke/tokyonight.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
opts = {},
|
||||
config = function()
|
||||
vim.cmd.colorscheme("tokyonight")
|
||||
end,
|
||||
|
|
@ -42,4 +41,4 @@ return {
|
|||
|
||||
-- vim.cmd.colorscheme("catppuccin")
|
||||
-- end,
|
||||
-- },
|
||||
-- }
|
||||
|
|
|
|||
|
|
@ -13,13 +13,29 @@ map:cmd('tmi', 'BufferLineMoveNext')
|
|||
|
||||
-- 关闭标签,貌似是neovim自带的,完整命令bdelete
|
||||
map:cmd('tq', 'bd')
|
||||
|
||||
return {
|
||||
'akinsho/bufferline.nvim',
|
||||
version = "*",-- 安装最新的稳定版
|
||||
dependencies = 'kyazdani42/nvim-web-devicons',
|
||||
"akinsho/bufferline.nvim",
|
||||
config = function()
|
||||
require("bufferline").setup {}
|
||||
end
|
||||
require("bufferline").setup {
|
||||
options = {
|
||||
modified_icon = "",
|
||||
buffer_close_icon = "×",
|
||||
-- show_buffer_close_icons = false,
|
||||
max_name_length = 14,
|
||||
max_prefix_length = 13,
|
||||
tab_size = 10,
|
||||
indicator = {
|
||||
style = "none",
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
-- 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