Updating all files to use stylua
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -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))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user