replace the bufferline with the mini variant
added devicons to telescope deps, so the deps are tracked more accurately.
This commit is contained in:
@@ -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', '<tab>', '<cmd>BufferLineCycleNext<cr>', { desc = 'switch to the next tab' })
|
||||
Map('n', '<s-tab>', '<cmd>BufferLineCyclePrev<cr>', { desc = 'switch to the previous tab' })
|
||||
|
||||
Map('n', '<leader>wch', '<cmd>BufferLineCloseLeft<cr>', { desc = 'close the tabs on the left' })
|
||||
Map('n', '<leader>wcl', '<cmd>BufferLineCloseRight<cr>', { desc = 'close the tabs on the right' })
|
||||
Map('n', '<leader>wcw', '<cmd>BufferLineCloseOthers<cr>',
|
||||
{ desc = 'close all tabs except the current one' })
|
||||
end,
|
||||
} }
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user