1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 12:48:01 +00:00

[neovim/kitty] Improve bufferline UI

This commit is contained in:
Daniel Carrillo 2023-09-16 20:05:38 +02:00
parent b5ffc202a4
commit f0810b2e32
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
4 changed files with 16 additions and 87 deletions

View File

@ -2,14 +2,10 @@
#: Fonts {{{ #: Fonts {{{
font_family RobotoMono Nerd Font font_family RobotoMono Nerd Font
# bold_font Roboto Mono Bold font_size 9
# italic_font Roboto Mono Italic modify_font underline_thickness 2px
# bold_italic_font Roboto Mono Bold Italic modify_font underline_position 4px
font_size 9
font_features none
# symbol_map U+E007-U+F8E8 Font Awesome 6 Brands
# symbol_map U+F022 Font Awesome 6 Free
#: }}} #: }}}

View File

@ -117,8 +117,8 @@ require("lazy").setup({
}, },
{ {
"jcdickinson/codeium.nvim", "jcdickinson/codeium.nvim",
event = 'BufEnter' event = "BufEnter",
}, },
-- Snippets -- Snippets
{ "L3MON4D3/LuaSnip", version = "v1.*" }, { "L3MON4D3/LuaSnip", version = "v1.*" },

View File

@ -1,86 +1,19 @@
require("bufferline").setup({ require("bufferline").setup({
options = { options = {
close_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions" close_command = "Bdelete! %d",
right_mouse_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions" right_mouse_command = "Bdelete! %d",
offsets = { offsets = {
{ filetype = "neo-tree", text = "", padding = 1 }, { filetype = "neo-tree", text = "", padding = 1 },
{ filetype = "dapui_scopes", text = "", padding = 1 }, { filetype = "dapui_scopes", text = "", padding = 1 },
}, },
indicator = { indicator = {
style = "none", style = "underline",
}, },
}, hover = {
highlights = { enabled = true,
fill = { delay = 200,
fg = { attribute = "fg", highlight = "TabLine" }, reveal = { "close" },
bg = { attribute = "bg", highlight = "TabLine" },
},
background = {
fg = { attribute = "fg", highlight = "TabLine" },
bg = { attribute = "bg", highlight = "TabLine" },
},
buffer_visible = {
fg = { attribute = "fg", highlight = "TabLine" },
bg = { attribute = "bg", highlight = "TabLine" },
},
close_button = {
fg = { attribute = "fg", highlight = "TabLine" },
bg = { attribute = "bg", highlight = "TabLine" },
},
close_button_visible = {
fg = { attribute = "fg", highlight = "TabLine" },
bg = { attribute = "bg", highlight = "TabLine" },
},
tab_selected = {
fg = { attribute = "fg", highlight = "Normal" },
bg = { attribute = "bg", highlight = "Normal" },
},
tab = {
fg = { attribute = "fg", highlight = "TabLine" },
bg = { attribute = "bg", highlight = "TabLine" },
},
tab_close = {
fg = { attribute = "fg", highlight = "TabLineSel" },
bg = { attribute = "bg", highlight = "Normal" },
},
duplicate_selected = {
fg = { attribute = "fg", highlight = "TabLineSel" },
bg = { attribute = "bg", highlight = "TabLineSel" },
italic = true,
},
duplicate_visible = {
fg = { attribute = "fg", highlight = "TabLine" },
bg = { attribute = "bg", highlight = "TabLine" },
italic = true,
},
duplicate = {
fg = { attribute = "fg", highlight = "TabLine" },
bg = { attribute = "bg", highlight = "TabLine" },
italic = true,
},
modified = {
fg = { attribute = "fg", highlight = "TabLine" },
bg = { attribute = "bg", highlight = "TabLine" },
},
modified_selected = {
fg = { attribute = "fg", highlight = "Normal" },
bg = { attribute = "bg", highlight = "Normal" },
},
modified_visible = {
fg = { attribute = "fg", highlight = "TabLine" },
bg = { attribute = "bg", highlight = "TabLine" },
},
separator = {
fg = { attribute = "bg", highlight = "TabLine" },
bg = { attribute = "bg", highlight = "TabLine" },
},
separator_selected = {
fg = { attribute = "bg", highlight = "Normal" },
bg = { attribute = "bg", highlight = "Normal" },
},
indicator_selected = {
fg = { attribute = "fg", highlight = "LspDiagnosticsDefaultHint" },
bg = { attribute = "bg", highlight = "Normal" },
}, },
separator_style = "slant",
}, },
}) })

View File

@ -7,8 +7,6 @@ require("plugins.autopairs")
require("plugins.comment") require("plugins.comment")
require("plugins.gitsigns") require("plugins.gitsigns")
require("plugins.neo-tree") require("plugins.neo-tree")
require("plugins.bufferline")
require("plugins.lualine")
require("plugins.illuminate") require("plugins.illuminate")
require("plugins.indentline") require("plugins.indentline")
require("plugins.lsp") require("plugins.lsp")
@ -22,3 +20,5 @@ require("plugins.projections")
require("plugins.diffview") require("plugins.diffview")
require("plugins.align") require("plugins.align")
require("plugins.ufo") require("plugins.ufo")
require("plugins.bufferline")
require("plugins.lualine")