]> git.sthu.org Git - vimconf.git/commitdiff
plugins: Replace airline by mini.nvim statusline and tabline
authorStefan Huber <shuber@sthu.org>
Mon, 15 Jul 2024 20:49:42 +0000 (22:49 +0200)
committerStefan Huber <shuber@sthu.org>
Thu, 18 Jul 2024 06:11:46 +0000 (08:11 +0200)
plugins-full.vim.example
plugins-mini.vim

index 20d17eb8d72caf55bdcca98db810c96085a1d824..d1286f346f8a8f59489e55ceaf9fe03e3a397d53 100644 (file)
@@ -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')
index 71bf708400b9e07591c5114decd1ba5a8cb3746a..12c364871fee354d9c5f558d59645f01ef34146e 100644 (file)
@@ -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')