From: Stefan Huber Date: Fri, 12 Jul 2024 21:49:44 +0000 (+0200) Subject: plugins: Replace indent detect plugin X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=a9b742745795ab1ac35a8792d21ee775204c422a;p=vimconf.git plugins: Replace indent detect plugin --- diff --git a/plugins-mini.vim b/plugins-mini.vim index dad7247..71bf708 100644 --- a/plugins-mini.vim +++ b/plugins-mini.vim @@ -11,8 +11,6 @@ Plug 'gruvbox-community/gruvbox' Plug 'benknoble/vim-auto-origami' -Plug 'roryokane/detectindent' - " This plugin cannot be conditionally loaded, see github issue #18 Plug 'derekwyatt/vim-fswitch' ", {'for': ['c', 'cpp', 'objc']} @@ -27,21 +25,14 @@ Plug 'flwyd/vim-conjoin' Plug 'nfnty/vim-nftables' if has('nvim') + " Comparison at https://github.com/Darazaki/indent-o-matic/issues/12 + Plug 'nmac427/guess-indent.nvim' Plug 'echasnovski/mini.nvim'", { 'branch': 'stable' } endif -function PluginsConfigMini() - - " Some preferences for indent detection - let g:detectindent_min_indent = 2 - let g:detectindent_max_indent = 4 - let g:detectindent_preferred_indent = 4 - " Minimum indenting for source code - au FileType c,cpp,objc,java,cs let g:detectindent_min_indent = 4 - " Consider using localvimrc config file or editorconfig instead - "au BufReadPost *.java :DetectIndent +function PluginsConfigMini() let g:airline_powerline_fonts=1 let g:airline#extensions#tabline#enabled=1 @@ -97,6 +88,12 @@ function PluginsConfigMini() let g:mapleader = "\" let g:maplocalleader = ',' + if has('nvim') + lua <