diff options
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/csv.vim | 14 | ||||
-rw-r--r-- | autoload/go/config.vim | 4 | ||||
-rw-r--r-- | autoload/terraform.vim | 2 | ||||
-rw-r--r-- | autoload/xml/html5.vim | 5 |
4 files changed, 18 insertions, 7 deletions
diff --git a/autoload/csv.vim b/autoload/csv.vim index 2adcf1bb..8561f30f 100644 --- a/autoload/csv.vim +++ b/autoload/csv.vim @@ -1956,8 +1956,12 @@ fu! csv#CheckHeaderLine() "{{{3 endfu fu! csv#AnalyzeColumn(...) "{{{3 let maxcolnr = csv#MaxColumns() - if len(a:000) == 1 + let topn = 5 + if len(a:000) > 0 let colnr = a:1 + if len(a:000) == 2 + let topn = a:2 + endif else let colnr = csv#WColumn() endif @@ -1985,8 +1989,8 @@ fu! csv#AnalyzeColumn(...) "{{{3 let max_items = reverse(sort(values(res), s:csv_numeric_sort ? 'n' : 'csv#CSVSortValues')) " What about the minimum 5 items? let count_items = keys(res) - if len(max_items) > 5 - call remove(max_items, 5, -1) + if len(max_items) > topn + call remove(max_items, topn, -1) call map(max_items, 'printf(''\V%s\m'', escape(v:val, ''\\''))') call filter(res, 'v:val =~ ''^''.join(max_items, ''\|'').''$''') endif @@ -2311,8 +2315,8 @@ fu! csv#CommandDefinitions() "{{{3 \ '-bang -nargs=? -range=%') call csv#LocalCmd("Filters", ':call csv#OutputFilters(<bang>0)', \ '-nargs=0 -bang') - call csv#LocalCmd("Analyze", ':call csv#AnalyzeColumn(<args>)', - \ '-nargs=?') + call csv#LocalCmd("Analyze", ':call csv#AnalyzeColumn(<f-args>)', + \ '-nargs=*' ) call csv#LocalCmd("VertFold", ':call csv#Vertfold(<bang>0,<q-args>)', \ '-bang -nargs=? -range=% -complete=custom,csv#SortComplete') call csv#LocalCmd("CSVFixed", ':call csv#InitCSVFixedWidth()', '') diff --git a/autoload/go/config.vim b/autoload/go/config.vim index 3030a7c6..26d6de91 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -496,6 +496,10 @@ function! go#config#CodeCompletionEnabled() abort return get(g:, "go_code_completion_enabled", 1) endfunction +function! go#config#CodeCompletionIcase() abort + return get(g:, "go_code_completion_icase", 0) +endfunction + function! go#config#Updatetime() abort let go_updatetime = get(g:, 'go_updatetime', 800) return go_updatetime == 0 ? &updatetime : go_updatetime diff --git a/autoload/terraform.vim b/autoload/terraform.vim index f1a10244..05a88e30 100644 --- a/autoload/terraform.vim +++ b/autoload/terraform.vim @@ -55,6 +55,8 @@ function! terraform#commands(ArgLead, CmdLine, CursorPos) abort \ 'graph', \ 'import', \ 'init', + \ 'login', + \ 'logout', \ 'output', \ 'plan', \ 'providers', diff --git a/autoload/xml/html5.vim b/autoload/xml/html5.vim index ed523b2c..a20fd4f9 100644 --- a/autoload/xml/html5.vim +++ b/autoload/xml/html5.vim @@ -131,6 +131,7 @@ let attributes_value = { \ 'label': ['Text', ''], \ 'lang': ['Lang Tag', ''], \ 'list': ['ID', ''], + \ 'loading': ['eager/lazy', ''], \ 'loop': ['Bool', ''], \ 'low': ['Number', ''], \ 'manifest': ['URL', ''], @@ -588,11 +589,11 @@ let g:xmldata_html5 = { \ ], \ 'iframe': [ \ [], - \ extend(copy(global_attributes), {'src': [], 'srcdoc': [], 'name': [], 'width': [], 'height': [], 'sandbox': ['allow-same-origin', 'allow-forms', 'allow-scripts'], 'seamless': ['seamless', ''], 'referrerpolicy': referrerpolicy, 'allowfullscreen': [], 'allowpaymentrequest': [], 'allowpresentation': [], 'allowusermedia': []}) + \ extend(copy(global_attributes), {'src': [], 'srcdoc': [], 'name': [], 'width': [], 'height': [], 'sandbox': ['allow-same-origin', 'allow-forms', 'allow-scripts'], 'seamless': ['seamless', ''], 'referrerpolicy': referrerpolicy, 'allowfullscreen': [], 'allowpaymentrequest': [], 'allowpresentation': [], 'allowusermedia': [], 'loading': ['eager', 'lazy']}) \ ], \ 'img': [ \ [], - \ extend(copy(global_attributes), {'src': [], 'alt': [], 'height': [], 'width': [], 'decoding': ['async', 'sync', 'auto'], 'usemap': [], 'ismap': ['ismap', ''], 'referrerpolicy': referrerpolicy, 'crossorigin': ['anonymous', 'use-credentials']}) + \ extend(copy(global_attributes), {'src': [], 'alt': [], 'height': [], 'width': [], 'decoding': ['async', 'sync', 'auto'], 'usemap': [], 'ismap': ['ismap', ''], 'referrerpolicy': referrerpolicy, 'crossorigin': ['anonymous', 'use-credentials'], 'loading': ['eager', 'lazy']}) \ ], \ 'input': [ \ [], |