moved MyFoldText() to vimrc.functions.vim)
This commit is contained in:
		
							parent
							
								
									901a4efcb2
								
							
						
					
					
						commit
						cc88bbe738
					
				| 
						 | 
				
			
			@ -89,6 +89,20 @@ function! GetStatusFrag(condition, colorname, conditionprefix, text) abort
 | 
			
		|||
endfunction
 | 
			
		||||
"}}}
 | 
			
		||||
 | 
			
		||||
function! MyFoldText()
 | 
			
		||||
"{{{
 | 
			
		||||
  let l:linecount = v:foldend - v:foldstart - 1
 | 
			
		||||
  let l:line = getline(v:foldstart)
 | 
			
		||||
 | 
			
		||||
  let l:prefix = '|+' . l:linecount . v:folddashes . '|  '
 | 
			
		||||
 | 
			
		||||
  let l:subexp = '^ \{,' . len(l:prefix) . '}'
 | 
			
		||||
  let l:foldtext = substitute(l:line, l:subexp, l:prefix, '')
 | 
			
		||||
 | 
			
		||||
  return l:foldtext
 | 
			
		||||
endfunction
 | 
			
		||||
"}}}
 | 
			
		||||
 | 
			
		||||
function! CheckLineEnding() abort 
 | 
			
		||||
  :normal $"{{{
 | 
			
		||||
  if getline('.')[col('.')-1] == ';' || getline('.')[col('.')-1] == ','
 | 
			
		||||
| 
						 | 
				
			
			@ -151,8 +165,7 @@ endfunction
 | 
			
		|||
function! GetLinterStatus(key) abort 
 | 
			
		||||
  let l:linter = ale#statusline#Count(bufnr(''))"{{{
 | 
			
		||||
 | 
			
		||||
  " return l:linter[a:key]
 | 
			
		||||
  return 3
 | 
			
		||||
  return l:linter[a:key]
 | 
			
		||||
endfunction
 | 
			
		||||
"}}}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue