A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sheerun/vim-polyglot/commit/ad2df97a644fd3bbddd5314a37c24c91bdd3b427 below:

Allow 6-spaces indent and do not set tabstop if changed · sheerun/vim-polyglot@ad2df97 · GitHub

@@ -2722,7 +2722,7 @@ if !has_key(s:disabled_packages, 'autoindent')

2722 2722

return 1

2723 2723

elseif line[0] == " "

2724 2724

let indent = len(matchstr(line, '^ *'))

2725 -

if indent < minindent && index([2, 3, 4, 8], indent) >= 0

2725 +

if indent < minindent && index([2, 3, 4, 6, 8], indent) >= 0

2726 2726

let minindent = indent

2727 2727

endif

2728 2728

endif

@@ -2731,7 +2731,9 @@ if !has_key(s:disabled_packages, 'autoindent')

2731 2731

if minindent < 10

2732 2732

setlocal expandtab

2733 2733

let &l:shiftwidth=minindent

2734 -

let &l:tabstop=minindent

2734 +

if &tabstop == 8

2735 +

let &l:tabstop=minindent

2736 +

endif

2735 2737

let b:sleuth_culprit .= ':' . i

2736 2738

return 1

2737 2739

endif


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4