Giter VIP home page Giter VIP logo

Comments (19)

roxma avatar roxma commented on June 14, 2024 11

Fuzzy matching could be enabled with this setting:

let g:cm_matcher = {'module': 'cm_matchers.fuzzy_matcher', 'case': 'smartcase'}

I'm keeping this issue open until the cursor flickering issue is fixed.

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024 1

I'm planning on an attempt to use the completefunc to tune the NCM core implementation to reduce the flickering. I'm not sure it's gonna work, though.

from nvim-completion-manager.

meain avatar meain commented on June 14, 2024 1

@sassanh Sorry, my bad. I was cheching fuzzy matching after setting abbrv matching. It works.

from nvim-completion-manager.

prabirshrestha avatar prabirshrestha commented on June 14, 2024

+1

Also should be able to customize the match function. Also could be async so that I could use other languages like golang for better fuzzy matching.

For asyncomplete I'm internally using https://github.com/tpope/vim-haystack filter function but haven't pushed it to public yet.

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024

I have a simple implementation.

But the flikering feels terrible for remote terminal user, due to nvim's builtin popup menu filtering.

output

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024

The flickering could be fixed with completefunc implementation.

But I feel cursor flickering at the right bottom corner of the popup menu, though, it cannot be seen in this screencast. I don't know how to fix this.

output

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024

Update screencast for cursor flickering

animation

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024

Related issue neovim/neovim#6115

from nvim-completion-manager.

iamcco avatar iamcco commented on June 14, 2024

nice work πŸ‘

from nvim-completion-manager.

casprwang avatar casprwang commented on June 14, 2024

great work!

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024

There's a more intuitive version of fuzzy matching brought by @sassanh , on #80

let g:cm_matcher = {'module': 'cm_matchers.abbrev_matcher'}

EDIT:

This module requires the ag binary from the_silver_searcher

from nvim-completion-manager.

meain avatar meain commented on June 14, 2024
let g:cm_matcher = {'module': 'cm_matchers.abbrev_matcher'}

does not work for me. I have ag in the $PATH.

from nvim-completion-manager.

sassanh avatar sassanh commented on June 14, 2024

@meain can you check the logs and see what's going wrong?
https://github.com/roxma/nvim-completion-manager/wiki/Trouble-shooting

from nvim-completion-manager.

meain avatar meain commented on June 14, 2024

@sassanh Any idea as to what I should be looking for. Also which log file should I be checking?

cat nvim_log_py3_cm_* | grep ERROR

returned nothing

from nvim-completion-manager.

sassanh avatar sassanh commented on June 14, 2024

@meain
consider using -i for your grep to make it incasesensitive.

from nvim-completion-manager.

meain avatar meain commented on June 14, 2024

@sassanh Still nothing.

from nvim-completion-manager.

sassanh avatar sassanh commented on June 14, 2024

@meain Is ncm working and fuzzy find not working or auto completion doesn't work at all?

from nvim-completion-manager.

meain avatar meain commented on June 14, 2024

Just fuzzy not working

from nvim-completion-manager.

sassanh avatar sassanh commented on June 14, 2024

That's strange. If fuzzy raises an error then ncm shouldn't work at all. How are you testing? What you type, what you expect to receive and what you actually get from ncm?

from nvim-completion-manager.

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.