summaryrefslogtreecommitdiff
path: root/fnl/config
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-05-24 23:44:51 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-05-24 23:44:51 +0200
commit0280bb06733c6ea3de087cc7b72decb3f7d41a17 (patch)
tree66b6ebcda4d3dd6957f92d40c655bfce6c418d73 /fnl/config
parentcb129352321700c03b0ba24cf8c30dbb6b37b024 (diff)
Remove bufferline and the tabline all together
Diffstat (limited to 'fnl/config')
-rw-r--r--fnl/config/autocmd.fnl4
-rw-r--r--fnl/config/bufferline.fnl69
-rw-r--r--fnl/config/init.fnl1
-rw-r--r--fnl/config/lualine.fnl1
4 files changed, 0 insertions, 75 deletions
diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl
index 911d8dc..7c65654 100644
--- a/fnl/config/autocmd.fnl
+++ b/fnl/config/autocmd.fnl
@@ -3,10 +3,6 @@
(defn- autocmd [event opts] (nvim.create_autocmd event opts))
-(autocmd :User
- {:pattern :AlphaReady
- :command "set showtabline=0 | autocmd BufUnload <buffer> set showtabline=2"})
-
(autocmd :BufEnter
{:command "if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif"})
diff --git a/fnl/config/bufferline.fnl b/fnl/config/bufferline.fnl
deleted file mode 100644
index def604f..0000000
--- a/fnl/config/bufferline.fnl
+++ /dev/null
@@ -1,69 +0,0 @@
-;; Topbar that displays open buffers.
-(module config.bufferline {autoload {util util}})
-
-(def- options {:numbers :none
- :close_command "Bdelete! %d"
- :right_mouse_command nil
- :left_mouse_command nil
- :middle_mouse_command nil
- :indicator_icon ""
- :buffer_close_icon ""
- :modified_icon "●"
- :close_icon ""
- :left_trunc_marker "<"
- :right_trunc_marker ">"
- :max_name_length 30
- :max_prefix_length 30
- :tab_size 21
- :diagnostics false
- :diagnostics_update_in_insert false
- :offsets [{:filetype :NvimTree :text "" :padding 0}]
- :show_buffer_icons false
- :show_buffer_close_icons false
- :show_close_icon false
- :show_tab_indicators false
- :persist_buffer_sort true
- :separator_style :thin
- :enforce_regular_tabs true
- :always_show_bufferline true})
-
-(def- default-bg-tabline {:attribute :bg :highlight :TabLine})
-
-(def- default-bg-normal {:attribute :bg :highlight :Normal})
-
-(def- default-fg-tabline {:attribute :fg :highlight :TabLine})
-
-(def- default-fg-normal {:attribute :fg :highlight :Normal})
-
-(def- highlights
- {:fill {:guifg {:attribute :fg :highlight "#ff0000"}
- :guibg default-bg-tabline}
- :background {:guifg default-fg-tabline :guibg default-bg-tabline}
- :buffer_visible {:guifg default-fg-tabline :guibg default-bg-tabline}
- :close_button {:guifg default-fg-tabline :guibg default-bg-tabline}
- :close_button_visible {:guifg default-fg-tabline
- :guibg default-bg-tabline}
- :tab_selected {:guifg default-fg-normal :guibg default-bg-normal}
- :tab {:guifg default-fg-tabline :guibg default-bg-tabline}
- :tab_close {:guifg {:attribute :fg :highlight :TabLineSel}
- :guibg default-bg-normal}
- :duplicate_selected {:guifg {:attribute :fg :highlight :TabLineSel}
- :guibg {:attribute :bg :highlight :TabLineSel}
- :gui :italic}
- :duplicate_visible {:guifg default-fg-tabline
- :guibg default-bg-tabline
- :gui :italic}
- :duplicate {:guifg default-fg-tabline
- :guibg default-bg-tabline
- :gui :italic}
- :modified {:guifg default-fg-tabline :guibg default-bg-tabline}
- :modified_selected {:guifg default-fg-normal :guibg default-bg-normal}
- :modified_visible {:guifg default-fg-tabline :guibg default-bg-tabline}
- :separator {:guifg default-bg-tabline :guibg default-bg-tabline}
- :separator_selected {:guifg default-bg-normal :guibg default-bg-normal}
- :indicator_selected {:guifg {:attribute :fg
- :highlight :LspDiagnosticsDefaultHint}
- :guibg default-bg-normal}})
-
-(let [bufferline (util.load-plugin :bufferline)]
- (bufferline.setup {: options : highlights}))
diff --git a/fnl/config/init.fnl b/fnl/config/init.fnl
index e3021af..e4785e5 100644
--- a/fnl/config/init.fnl
+++ b/fnl/config/init.fnl
@@ -4,7 +4,6 @@
config.alpha
config.autopairs
config.better-escape
- config.bufferline
config.cmp
config.colorizer
config.colorscheme
diff --git a/fnl/config/lualine.fnl b/fnl/config/lualine.fnl
index 5ab0920..47537ff 100644
--- a/fnl/config/lualine.fnl
+++ b/fnl/config/lualine.fnl
@@ -44,5 +44,4 @@
:lualine_z [:location
:progress
:encoding]}
- :tabline {}
:extensions {}}))