From a48790142d743fbb93dee78634c54dc30d4de9c4 Mon Sep 17 00:00:00 2001 From: Erich L Foster Date: Mon, 8 Jul 2024 13:35:56 +0200 Subject: [PATCH] Decrease size of bufferline number --- config/lvim/lua/user/options.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/config/lvim/lua/user/options.lua b/config/lvim/lua/user/options.lua index c9e496d..97bb374 100644 --- a/config/lvim/lua/user/options.lua +++ b/config/lvim/lua/user/options.lua @@ -45,7 +45,7 @@ lvim.builtin.treesitter.highlight.enable = true -- completion settings local sources_table = lvim.builtin.cmp.sources -sources_table[#sources_table+1] = { +sources_table[#sources_table + 1] = { name = "codeium" } @@ -65,7 +65,9 @@ lvim.builtin.telescope.defaults.layout_strategy = "horizontal" -- buffer line options lvim.builtin.bufferline.options.middle_mouse_command = "bdelete! %d" -lvim.builtin.bufferline.options.numbers = "ordinal" +lvim.builtin.bufferline.options.numbers = function(opts) + return string.format("%s", opts.lower(opts.ordinal)) +end lvim.builtin.bufferline.options.separator_style = "slant" -- tell project where my projects start @@ -80,14 +82,14 @@ table.insert(lvim.builtin.alpha.dashboard.section.buttons.entries, -- LSP require("lvim.lsp.null-ls.formatters").setup { { name = "black", - args = {"-l", "99"} + args = { "-l", "99" } }, { name = "clang-format", filetype = { "c", "cpp", "cs", "java" }, args = { "--style", "file" } }, { name = "isort", - args = { + args = { "-l", "99", "--profile", "black" }