add two plugs

This commit is contained in:
newbieQQ 2023-11-16 23:29:04 +08:00
parent 6dfd732e6d
commit a77c1908dd
3 changed files with 34 additions and 3 deletions

View File

@ -14,6 +14,7 @@ return {
require("plugs.edit-plugs"), require("plugs.edit-plugs"),
require("plugs.hop"), require("plugs.hop"),
require("plugs.toggleterm")
-- nerdtree -- nerdtree
-- { -- {

View File

@ -1,5 +1,8 @@
return { return {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
dependencies = {
'kdheepak/tabline.nvim',
},
config = function() config = function()
require('lualine').setup { require('lualine').setup {
options = { options = {
@ -41,5 +44,27 @@ return {
inactive_winbar = {}, inactive_winbar = {},
extensions = {} extensions = {}
} }
require('tabline').setup {
-- Defaults configuration options
enable = true,
options = {
-- If lualine is installed tabline will use separators configured in lualine by default.
-- These options can be used to override those settings.
section_separators = {'', ''},
component_separators = {'', ''},
max_bufferline_percent = 66, -- set to nil by default, and it uses vim.o.columns * 2/3
show_tabs_always = false, -- this shows tabs only when there are more than one tab or if the first tab is named
show_devicons = true, -- this shows devicons in buffer section
show_bufnr = false, -- this appends [bufnr] to buffer section,
show_filename_only = false, -- shows base filename only instead of relative path in filename
modified_icon = "+ ", -- change the default modified icon
modified_italic = false, -- set to true by default; this determines whether the filename turns italic if modified
show_tabs_only = false, -- this shows only tabs instead of tabs + buffers
},
G.cmd[[
set guioptions-=e " Use showtabline in gui vim
set sessionoptions+=tabpages,globals " store tabpages and globals in session
]]
}
end, end,
} }

5
lua/plugs/toggleterm.lua Normal file
View File

@ -0,0 +1,5 @@
return {
-- amongst your other plugins
{'akinsho/toggleterm.nvim', version = "*", config = true},
}