Giter Site home page Giter Site logo

Comments (3)

smjonas avatar smjonas commented on August 16, 2024 1

Hey, I have thought about implementing this as well because it is quite annoying being
forced to restart Neovim to get new snippets to show up. We could create a command that clears
all caches (essentially the snippet_info_for_file and snippet_info_for_ft tables).

Then load_snippet_info() should parse all files and snippets again.

@quangnguyen30192 let me know in case you have started implementing this feature

from cmp-nvim-ultisnips.

quangnguyen30192 avatar quangnguyen30192 commented on August 16, 2024 1

@camgraff the cache now is auto invalidate whenever the snippet files are edited

from cmp-nvim-ultisnips.

quangnguyen30192 avatar quangnguyen30192 commented on August 16, 2024

Hey, thank you for your opinion. This was my thought as well when I was implementing the caching.
Surely if the snippets are just hundreds, there's no need to cache at all

But It would not quite efficient when it's loading a thousand snippets without caching (people could use many snippets sources as they wish to use: e.g honza/vim-snippets).

I will check and could add the option to configure the cache (disable, or enable) on the configuration, or add an autocmd for auto invalidating the cache.

from cmp-nvim-ultisnips.

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.