From 832354c690c2876e1770b9facebcfc4c6ec0cbc4 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 15 Jul 2024 22:49:42 +0200 Subject: [PATCH] plugins: Replace airline by mini.nvim statusline and tabline --- plugins-full.vim.example | 2 +- plugins-mini.vim | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/plugins-full.vim.example b/plugins-full.vim.example index 20d17eb..d1286f3 100644 --- a/plugins-full.vim.example +++ b/plugins-full.vim.example @@ -302,7 +302,7 @@ EOF let g:vimtex_fold_levelmarker = '➜' let g:vimtex_view_general_viewer = 'okular' let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex' - let g:airline#extensions#vimtex#enabled = 1 + " let g:airline#extensions#vimtex#enabled = 1 au FileType c,cpp,objc,java,python packadd! vimspector let g:vimspector_base_dir = expand('~/.vim/vimspector-config') diff --git a/plugins-mini.vim b/plugins-mini.vim index 71bf708..12c3648 100644 --- a/plugins-mini.vim +++ b/plugins-mini.vim @@ -6,7 +6,6 @@ endfunction Plug 'mhinz/vim-startify' Plug 'dstein64/vim-startuptime' -Plug 'vim-airline/vim-airline' Plug 'gruvbox-community/gruvbox' Plug 'benknoble/vim-auto-origami' @@ -27,17 +26,17 @@ Plug 'nfnty/vim-nftables' if has('nvim') " Comparison at https://github.com/Darazaki/indent-o-matic/issues/12 Plug 'nmac427/guess-indent.nvim' +endif +if has('nvim-0.7') Plug 'echasnovski/mini.nvim'", { 'branch': 'stable' } +else + Plug 'vim-airline/vim-airline' endif function PluginsConfigMini() - let g:airline_powerline_fonts=1 - let g:airline#extensions#tabline#enabled=1 - let g:airline#extensions#branch#enabled=1 - let g:gruvbox_contrast_light='hard' let g:gruvbox_contrast_dark='hard' set bg=dark @@ -107,8 +106,8 @@ EOF require('mini.diff').setup() require('mini.files').setup() require('mini.fuzzy').setup() - require('mini.icons').setup() require('mini.git').setup() + require('mini.icons').setup() require('mini.jump2d').setup() require('mini.map').setup() require('mini.move').setup() @@ -117,9 +116,15 @@ EOF require('mini.pick').setup() require('mini.sessions').setup() require('mini.splitjoin').setup() + require('mini.statusline').setup() require('mini.surround').setup() + require('mini.tabline').setup() require('mini.trailspace').setup() EOF + else + let g:airline_powerline_fonts=1 + let g:airline#extensions#tabline#enabled=1 + let g:airline#extensions#branch#enabled=1 endif if has('nvim-0.9') -- 2.39.5