Git Product home page Git Product logo

Comments (5)

kkharji avatar kkharji commented on June 19, 2024

Its a bit hard and you will need custom shell and lua scripts, if you want I can walk through running your first test busted framework

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

I'm implementing it...

benchmark

v1: elapsed time: 2.401
v2: elapsed time: 0.342

local M1 = require'compe.completion.matcher'
local M2 = require'compe.completion.matcher2'

local attempts = 100000

x = os.clock()
for j = 1, attempts do
    tmp = M1.score('nvimgetbufline', 'nvimgetbufline', 'nvim_g_et_b_uf_line')
end
elapsed = os.clock() - x
print(string.format("V1: elapsed time: %.3f", elapsed))

x = os.clock()
for j = 1, attempts do
    tmp = M2.score('nvimgetbufline', 'nvim_g_et_b_uf_line')
end
elapsed = os.clock() - x
print(string.format("V2: elapsed time: %.3f", elapsed))

from nvim-compe.

kkharji avatar kkharji commented on June 19, 2024

Oh wow 😍 😍 😍 😍 😍 😍 😍 😍 😍 😍 😍 😍 😍 Nice well done @hrsh7th

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

I will add the feature of remaining char match.

Currently, nvim-compe does not match fnamemodify with fmodify.
This feature makes matching it.

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

I will add the feature of remaining char match.

Currently, nvim-compe does not match fnamemodify with modify.
This feature makes matching it.

Sorry. It bit hard to implement. So I will merge performance improvements before implementing them.

from nvim-compe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.