diff options
| author | Rafael <[email protected]> | 2021-07-04 22:14:01 -0300 | 
|---|---|---|
| committer | Rafael <[email protected]> | 2021-07-04 22:14:01 -0300 | 
| commit | 9f511bcb594b7e2461c97cb8182603928c773c2f (patch) | |
| tree | c08a825ae91201fb0062dbd7a8094357f5c78dc9 /lua/lv-bufferline | |
| parent | b461c878e6f70a6795d0e9b438335ccfecbb4bd9 (diff) | |
start formatting rules
Diffstat (limited to 'lua/lv-bufferline')
| -rw-r--r-- | lua/lv-bufferline/init.lua | 135 | 
1 files changed, 66 insertions, 69 deletions
| diff --git a/lua/lv-bufferline/init.lua b/lua/lv-bufferline/init.lua index 0dbaaceb..af1a2d20 100644 --- a/lua/lv-bufferline/init.lua +++ b/lua/lv-bufferline/init.lua @@ -1,76 +1,73 @@  local M = {}  M.config = function() - -    -- Buffer line setup -    require'bufferline'.setup { -        options = { -            indicator_icon = '▎', -            buffer_close_icon = '', -            modified_icon = '●', -            close_icon = '', -            close_command = "bdelete %d", -            right_mouse_command = "bdelete! %d", -            left_trunc_marker = '', -            right_trunc_marker = '', -            offsets = { -                { -                    filetype = "NvimTree", -                    text = "", -                    text_align = "center", -                    padding = 1 -                } -            }, -            show_tab_indicators = true, -            show_close_icon = false +  -- Buffer line setup +  require("bufferline").setup { +    options = { +      indicator_icon = "▎", +      buffer_close_icon = "", +      modified_icon = "●", +      close_icon = "", +      close_command = "bdelete %d", +      right_mouse_command = "bdelete! %d", +      left_trunc_marker = "", +      right_trunc_marker = "", +      offsets = { +        { +          filetype = "NvimTree", +          text = "", +          text_align = "center", +          padding = 1,          }, -        highlights = { -            fill = { -                guifg = {attribute = "fg", highlight = "Normal"}, -                guibg = {attribute = "bg", highlight = "StatusLineNC"} -            }, -            -- background = { -            --     guifg = {attribute = "fg", highlight = "Normal"}, -            --     guibg = {attribute = "bg", highlight = "StatusLine"} -            -- }, -            -- buffer_visible = { -            --     gui = "", -            --     guifg = {attribute = "fg", highlight = "Normal"}, -            --     guibg = {attribute = "bg", highlight = "Normal"} -            -- }, -            -- buffer_selected = { -            --     gui = "", -            --     guifg = {attribute = "fg", highlight = "Normal"}, -            --     guibg = {attribute = "bg", highlight = "Normal"} -            -- }, -            -- separator = { -            --     guifg = {attribute = "bg", highlight = "Normal"}, -            --     guibg = {attribute = "bg", highlight = "StatusLine"} -            -- }, -            -- separator_selected = { -            --     guifg = {attribute = "fg", highlight = "Special"}, -            --     guibg = {attribute = "bg", highlight = "Normal"} -            -- }, -            -- separator_visible = { -            --     guifg = {attribute = "fg", highlight = "Normal"}, -            --     guibg = {attribute = "bg", highlight = "StatusLineNC"} -            -- }, -            -- close_button = { -            --     guifg = {attribute = "fg", highlight = "Normal"}, -            --     guibg = {attribute = "bg", highlight = "StatusLine"} -            -- }, -            -- close_button_selected = { -            --     guifg = {attribute = "fg", highlight = "normal"}, -            --     guibg = {attribute = "bg", highlight = "normal"} -            -- }, -            -- close_button_visible = { -            --     guifg = {attribute = "fg", highlight = "normal"}, -            --     guibg = {attribute = "bg", highlight = "normal"} -            -- } - -        } -    } - +      }, +      show_tab_indicators = true, +      show_close_icon = false, +    }, +    highlights = { +      fill = { +        guifg = { attribute = "fg", highlight = "Normal" }, +        guibg = { attribute = "bg", highlight = "StatusLineNC" }, +      }, +      -- background = { +      --     guifg = {attribute = "fg", highlight = "Normal"}, +      --     guibg = {attribute = "bg", highlight = "StatusLine"} +      -- }, +      -- buffer_visible = { +      --     gui = "", +      --     guifg = {attribute = "fg", highlight = "Normal"}, +      --     guibg = {attribute = "bg", highlight = "Normal"} +      -- }, +      -- buffer_selected = { +      --     gui = "", +      --     guifg = {attribute = "fg", highlight = "Normal"}, +      --     guibg = {attribute = "bg", highlight = "Normal"} +      -- }, +      -- separator = { +      --     guifg = {attribute = "bg", highlight = "Normal"}, +      --     guibg = {attribute = "bg", highlight = "StatusLine"} +      -- }, +      -- separator_selected = { +      --     guifg = {attribute = "fg", highlight = "Special"}, +      --     guibg = {attribute = "bg", highlight = "Normal"} +      -- }, +      -- separator_visible = { +      --     guifg = {attribute = "fg", highlight = "Normal"}, +      --     guibg = {attribute = "bg", highlight = "StatusLineNC"} +      -- }, +      -- close_button = { +      --     guifg = {attribute = "fg", highlight = "Normal"}, +      --     guibg = {attribute = "bg", highlight = "StatusLine"} +      -- }, +      -- close_button_selected = { +      --     guifg = {attribute = "fg", highlight = "normal"}, +      --     guibg = {attribute = "bg", highlight = "normal"} +      -- }, +      -- close_button_visible = { +      --     guifg = {attribute = "fg", highlight = "normal"}, +      --     guibg = {attribute = "bg", highlight = "normal"} +      -- } +    }, +  }  end  return M | 
