vim-indent-detect

A Vim plugin for handeling indentation.
git clone https://git.ce9e.org/vim-indent-detect.git

commit
d37852070dddf291884974c26fd30c88eccc81ad
parent
fe247ce9b452dd2818bbb8ac90129930ffadbd1a
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-04-20 09:42
skip detection if editorconfig has been applied

Diffstat

M autoload/detectindent.vim 4 ++++

1 files changed, 4 insertions, 0 deletions


diff --git a/autoload/detectindent.vim b/autoload/detectindent.vim

@@ -8,6 +8,10 @@ function! detectindent#Set(expandtab, ...)
    8     8 endfunction
    9     9 
   10    10 function! detectindent#Detect()
   -1    11 	if get(b:, 'editorconfig_applied', 0)
   -1    12 		return
   -1    13 	endif
   -1    14 
   11    15 	let l:n = 1
   12    16 
   13    17 	while l:n <= 50