- Improved snippet rank.
This commit is contained in:
parent
d709b75afe
commit
5ccca08ff8
@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" FILE: snippets_complete.vim
|
" FILE: snippets_complete.vim
|
||||||
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
||||||
" Last Modified: 04 Nov 2012.
|
" Last Modified: 09 Nov 2012.
|
||||||
" License: MIT license {{{
|
" License: MIT license {{{
|
||||||
" Permission is hereby granted, free of charge, to any person obtaining
|
" Permission is hereby granted, free of charge, to any person obtaining
|
||||||
" a copy of this software and associated documentation files (the
|
" a copy of this software and associated documentation files (the
|
||||||
@ -79,6 +79,7 @@ function! s:keyword_filter(snippets, cur_keyword_str)"{{{
|
|||||||
for snippet in list
|
for snippet in list
|
||||||
" reset refresh flag.
|
" reset refresh flag.
|
||||||
let snippet.neocomplcache__refresh = 0
|
let snippet.neocomplcache__refresh = 0
|
||||||
|
let snippet.rank = 5
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
if len(a:cur_keyword_str) > 1 && a:cur_keyword_str =~ '^\h\w*$'
|
if len(a:cur_keyword_str) > 1 && a:cur_keyword_str =~ '^\h\w*$'
|
||||||
@ -89,6 +90,7 @@ function! s:keyword_filter(snippets, cur_keyword_str)"{{{
|
|||||||
for snippet in partial_list
|
for snippet in partial_list
|
||||||
" Set refresh flag.
|
" Set refresh flag.
|
||||||
let snippet.neocomplcache__refresh = 1
|
let snippet.neocomplcache__refresh = 1
|
||||||
|
let snippet.rank = 0
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
let list += partial_list
|
let list += partial_list
|
||||||
|
@ -715,6 +715,7 @@ CHANGELOG *neosnippet-changelog*
|
|||||||
2012-11-09
|
2012-11-09
|
||||||
- Improved syntax error.
|
- Improved syntax error.
|
||||||
- Fixed error in java snippet.
|
- Fixed error in java snippet.
|
||||||
|
- Improved snippet rank.
|
||||||
|
|
||||||
2012-11-07
|
2012-11-07
|
||||||
- Fixed s:indent_snippet().
|
- Fixed s:indent_snippet().
|
||||||
|
Loading…
Reference in New Issue
Block a user