diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-05-24 23:44:51 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-05-24 23:44:51 +0200 |
commit | 0280bb06733c6ea3de087cc7b72decb3f7d41a17 (patch) | |
tree | 66b6ebcda4d3dd6957f92d40c655bfce6c418d73 /fnl | |
parent | cb129352321700c03b0ba24cf8c30dbb6b37b024 (diff) |
Remove bufferline and the tabline all together
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/config/autocmd.fnl | 4 | ||||
-rw-r--r-- | fnl/config/bufferline.fnl | 69 | ||||
-rw-r--r-- | fnl/config/init.fnl | 1 | ||||
-rw-r--r-- | fnl/config/lualine.fnl | 1 | ||||
-rw-r--r-- | fnl/plugins.fnl | 1 | ||||
-rw-r--r-- | fnl/settings/options.fnl | 2 |
6 files changed, 1 insertions, 77 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 {}})) diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index b2de04e..49f413c 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -46,7 +46,6 @@ :lewis6991/gitsigns.nvim {} :kyazdani42/nvim-web-devicons {} :kyazdani42/nvim-tree.lua {:requires {1 :kyazdani42/nvim-web-devicons}} - :akinsho/bufferline.nvim {} :moll/vim-bbye {} :nvim-lualine/lualine.nvim {:requires {1 :kyazdani42/nvim-web-devicons :opt true}} diff --git a/fnl/settings/options.fnl b/fnl/settings/options.fnl index ec43440..3a88c5c 100644 --- a/fnl/settings/options.fnl +++ b/fnl/settings/options.fnl @@ -27,7 +27,7 @@ ;; we don't need to see things like ;; INSERT ;; anymore :showmode false ;; always show tabs - :showtabline 2 + :showtabline 0 ;; smart case :smartcase true ;; make indenting smarter again |