From 8cf37489becb06cef49a4115482b267b628ffee4 Mon Sep 17 00:00:00 2001 From: Quinn Date: Sun, 23 Nov 2025 02:05:17 +0100 Subject: [PATCH] replace the bufferline with the mini variant added devicons to telescope deps, so the deps are tracked more accurately. --- .config/nvim/lua/plugin/bufferline.lua | 29 -------------------------- .config/nvim/lua/plugin/mini.lua | 2 ++ .config/nvim/lua/plugin/telescope.lua | 1 + 3 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 .config/nvim/lua/plugin/bufferline.lua diff --git a/.config/nvim/lua/plugin/bufferline.lua b/.config/nvim/lua/plugin/bufferline.lua deleted file mode 100644 index 022ad2d..0000000 --- a/.config/nvim/lua/plugin/bufferline.lua +++ /dev/null @@ -1,29 +0,0 @@ ----@type LazySpec -return { { - 'akinsho/bufferline.nvim', -- shows the opened buffers - event = 'VeryLazy', - dependencies = { 'nvim-tree/nvim-web-devicons', }, - ---@type bufferline.UserConfig - opts = { - options = { - mode = 'buffers', - separator_style = '', - sort_by = 'directory', - diagnostics = 'nvim_lsp', - diagnostics_indicator = function(c, _, _, _) - return '(' .. c .. ')' - end, - }, - }, - config = function(_, opts) - require('bufferline').setup(opts) - - Map('n', '', 'BufferLineCycleNext', { desc = 'switch to the next tab' }) - Map('n', '', 'BufferLineCyclePrev', { desc = 'switch to the previous tab' }) - - Map('n', 'wch', 'BufferLineCloseLeft', { desc = 'close the tabs on the left' }) - Map('n', 'wcl', 'BufferLineCloseRight', { desc = 'close the tabs on the right' }) - Map('n', 'wcw', 'BufferLineCloseOthers', - { desc = 'close all tabs except the current one' }) - end, -} } diff --git a/.config/nvim/lua/plugin/mini.lua b/.config/nvim/lua/plugin/mini.lua index 56f7d5f..fc408c5 100644 --- a/.config/nvim/lua/plugin/mini.lua +++ b/.config/nvim/lua/plugin/mini.lua @@ -71,6 +71,7 @@ require('mini.diff').setup({ -- shows git diffs in the file }) require('mini.jump').setup() -- extends f,F,t,T to work across multiple lines require('mini.cursorword').setup() -- highlight words beneath the cursor +require('mini.icons').setup() require('mini.indentscope').setup({ draw = { delay = 50, -- delay in MS before writing the indicator @@ -111,6 +112,7 @@ require('mini.statusline').setup({ use_icons = true, set_vim_settings = true, }) +require('mini.tabline').setup() -- TODO: port keybindings from the older configuration require('mini.trailspace').setup() -- trailing space indication and removal. ---@module 'lazy' diff --git a/.config/nvim/lua/plugin/telescope.lua b/.config/nvim/lua/plugin/telescope.lua index 77b74af..c2abd0b 100644 --- a/.config/nvim/lua/plugin/telescope.lua +++ b/.config/nvim/lua/plugin/telescope.lua @@ -7,6 +7,7 @@ return { { dependencies = { { 'nvim-lua/plenary.nvim' }, -- contains lua functions for neovim, apparently { 'nvim-telescope/telescope-ui-select.nvim' }, -- allows neovim core stuff to enter the telescope picker + { 'nvim-tree/nvim-web-devicons' }, { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make', -- used for when the plugin is installed/updated