feat: add tabline, filetree, autopairs
This commit is contained in:
parent
d891f4ac5a
commit
4b150dbc0d
7 changed files with 155 additions and 21 deletions
24
lua/custom/plugins/tabline.lua
Normal file
24
lua/custom/plugins/tabline.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
return {
|
||||
"kdheepak/tabline.nvim",
|
||||
config = function()
|
||||
require 'tabline'.setup {
|
||||
enable = true,
|
||||
options = {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
vim.keymap.set('n', '<Tab>', '<Cmd>TablineBufferNext<CR>', {})
|
||||
vim.keymap.set('n', '<S-Tab>', '<Cmd>TablineBufferPrev<CR>', {})
|
||||
vim.keymap.set('n', ';x', ':bp<bar>sp<bar>bn<bar>bd<CR><CR>', { noremap = true, silent = true })
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue