diff --git a/lua/plugs/edit-plugs.lua b/lua/plugs/edit-plugs.lua index 2a65c21..f50bfe4 100644 --- a/lua/plugs/edit-plugs.lua +++ b/lua/plugs/edit-plugs.lua @@ -11,7 +11,6 @@ return { -- 多光标 { 'terryma/vim-multiple-cursors', - keys = { "", "", "" }, }, { --格式整理 @@ -43,18 +42,17 @@ return { }) end }, - { - "askfiy/nvim-picgo", - config = function() - G.map({ - { 'n', 'pp', ':UploadClipboard' } - }) - require("nvim-picgo").setup() - end - }, + -- { + -- "askfiy/nvim-picgo", + -- config = function() + -- G.map({ + -- { 'n', 'pp', ':UploadClipboard' } + -- }) + -- require("nvim-picgo").setup() + -- end + -- }, { -- hop require("plugs.hop") - } } diff --git a/lua/plugs/nvim-lspconfig.lua b/lua/plugs/nvim-lspconfig.lua index f2fd686..9d6e316 100644 --- a/lua/plugs/nvim-lspconfig.lua +++ b/lua/plugs/nvim-lspconfig.lua @@ -268,6 +268,45 @@ return { }, }, { - "" + 'fgheng/winbar.nvim', + config = function() + require('winbar').setup({ + enabled = true, -- 是否启动winbar + + -- show_file_path = true, -- 是否显示文件路径 + show_symbols = true, -- 是否显示函数标签 + + -- 颜色配置,为空,将使用默认配色 + colors = { + path = '#aaffff', -- 路径的颜色,比如#ababab + file_name = '#bbbbff', -- 文件名称的颜色,比如#acacac + symbols = '', -- 函数颜色 + }, + + -- 图标配置 + icons = { + seperator = '>', -- 路径分割符号 + editor_state = '●', + lock_icon = '', + }, + + -- 关闭winbar的窗口 + exclude_filetype = { + 'help', + 'startify', + 'dashboard', + 'packer', + 'neogitstatus', + 'NvimTree', + 'Trouble', + 'alpha', + 'lir', + 'Outline', + 'spectre_panel', + 'toggleterm', + 'qf', + } + }) + end }, }