matsui54 / ddc-postfilter_score Goto Github PK
View Code? Open in Web Editor NEWPost filter for ddc.vim using score
License: MIT License
Post filter for ddc.vim using score
License: MIT License
Thanks for the nice filter.
The feature of highlight matched character seems not working with my config.
Here is my config of ddc.
call ddc#custom#patch_global('ui', 'native')
call ddc#custom#patch_global('sources', ['file', 'around', 'nvim-lsp', 'buffer', 'ultisnips', 'mocword'])
call ddc#custom#patch_global('sourceOptions', {
\ '_': {
\ 'maxItems': 9,
\ 'matchers': ['matcher_fuzzy', 'matcher_length'],
\ 'ignoreCase': v:true},
\ 'nvim-lsp': {
\ 'mark': 'LSP',
\ 'forceCompletionPattern': '\.\w*|:\w*|->\w*'},
\ 'around': {
\ 'isVolatile': v:true,
\ 'mark': 'A'},
\ 'buffer': {
\ 'mark': 'B'},
\ 'ultisnips': {
\ 'isVolatile': v:true,
\ 'mark': 'U'},
\ 'file': {
\ 'mark': 'F',
\ 'isVolatile': v:true,
\ 'forceCompletionPattern': '\S/\S*'},
\ 'mocword': {
\ 'mark': 'M',
\ 'isVolatile': v:true,
\ 'maxItems': 5},
\ })
call ddc#custom#patch_global('postFilters', ["postfilter_score"])
call ddc#custom#patch_filetype(
\ ['ps1', 'dosbatch', 'autohotkey', 'registry'], {
\ 'sourceOptions': {
\ 'file': {
\ 'forceCompletionPattern': '\S\\\S*',
\ }},
\ })
call ddc#custom#patch_global('sourceParams', {
\ 'buffer': {
\ 'fromAltBuf': v:true},
\ 'around': {
\ 'maxSize': 500},
\ })
call ddc#custom#patch_global('filterParams', {
\ 'converter_truncate': {'maxAbbrWidth': 40, 'maxKindWidth':20, 'maxMenuWidth':40},
\ })
" <TAB>: completion.
inoremap <silent><expr> <TAB>
\ pumvisible() ? '<C-n>' :
\ (col('.') <= 1 <Bar><Bar> getline('.')[col('.') - 2] =~# '\s') ?
\ '<TAB>' : ddc#map#manual_complete()
" <S-TAB>: completion back.
inoremap <expr><S-TAB> pumvisible() ? '<C-p>' : '<C-h>'
set completeopt+=noinsert
call ddc#enable()
colorscheme catppuccin-frappe
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.