Updating all files to use stylua

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-08-31 12:14:37 +02:00
parent 4e07e36ca7
commit 2eaafbc10e
27 changed files with 788 additions and 737 deletions

View File

@@ -3,7 +3,7 @@ if not setup then
return
end
bufferline.setup {
bufferline.setup({
options = {
mode = "buffers",
style_preset = bufferline.style_preset.default,
@@ -12,7 +12,7 @@ bufferline.setup {
close_command = "bdelete! %d",
indicator = {
icon = "",
style = "icon"
style = "icon",
},
max_name_length = 18,
max_prefix_length = 15,
@@ -23,12 +23,12 @@ bufferline.setup {
filetype = "NvimTree",
text = "File Explorer",
highlight = "None",
padding = 1
}
padding = 1,
},
},
color_icons = true,
get_element_icon = function(element)
local icon, hl = require('nvim-web-devicons').get_icon_by_filetype(element.filetype, { default = false })
local icon, hl = require("nvim-web-devicons").get_icon_by_filetype(element.filetype, { default = false })
return icon, hl
end,
always_show_bufferline = true,
@@ -36,10 +36,10 @@ bufferline.setup {
diagnostics_update_in_insert = false,
diagnostics_indicator = function(count, level, diagnostics_dict, context)
if context.buffer:current() then
return ''
return ""
end
return ''
return ""
end,
highlights = {
background = {
@@ -58,12 +58,12 @@ bufferline.setup {
guibg = "None",
},
},
}
}
},
})
vim.g.transparent_groups = vim.list_extend(
vim.g.transparent_groups or {},
vim.tbl_map(function(v)
return v.hl_group
end, vim.tbl_values(require('bufferline.config').highlights))
vim.g.transparent_groups or {},
vim.tbl_map(function(v)
return v.hl_group
end, vim.tbl_values(require("bufferline.config").highlights))
)