diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-10-19 23:55:51 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-10-19 23:55:51 +0200 |
| commit | 27a7c25f0727b373b5d0e4693d5bb2cb4c9c3a88 (patch) | |
| tree | e6a22147b9ff4bf1a4dbe30ae0072a569a6f1e4c /lua/user/tabline.lua | |
| parent | 8242c19f6427996a94e6f6079b11ccebdb003cf2 (diff) | |
| download | dotfiles-27a7c25f0727b373b5d0e4693d5bb2cb4c9c3a88.tar.gz dotfiles-27a7c25f0727b373b5d0e4693d5bb2cb4c9c3a88.zip | |
Made Sourcing lua config easier
Diffstat (limited to 'lua/user/tabline.lua')
| -rw-r--r-- | lua/user/tabline.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/user/tabline.lua b/lua/user/tabline.lua new file mode 100644 index 0000000..4e1c506 --- /dev/null +++ b/lua/user/tabline.lua @@ -0,0 +1,22 @@ +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 = true, -- 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 = true, -- 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 = true, -- 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.cmd([[ + set guioptions-=e " Use showtabline in gui vim + set sessionoptions+=tabpages,globals " store tabpages and globals in session +]]) |
