Coder Social home page Coder Social logo

Comments (7)

L3MON4D3 avatar L3MON4D3 commented on June 12, 2024

I don't know much about packer's internals, does it change anything about the loaded plugins when PackerCompile is called?
Your error "shouldn't" occur during normal usage I think.

from cmp_luasnip.

wuilliam321 avatar wuilliam321 commented on June 12, 2024

Try find for get_documentation function and add:

local function get_documentation(snip, data)
	if snip == nil then
		return ""
	end
	local header = (snip.name or "") .. " _ `[" .. data.filetype .. "]`\n"
        ...

from cmp_luasnip.

L3MON4D3 avatar L3MON4D3 commented on June 12, 2024

@melkster Could you make sure you're adding snippets via ls.add_snippets(ft, snippets)?
I didn't consider that not everybody is using that already (it is deprecated, but not yet unsupported).

from cmp_luasnip.

wuilliam321 avatar wuilliam321 commented on June 12, 2024

What is deprecated? get_documentation?

from cmp_luasnip.

saadparwaiz1 avatar saadparwaiz1 commented on June 12, 2024

@wuilliam321 adding snippets by directly accessing the snippet table

from cmp_luasnip.

mawkler avatar mawkler commented on June 12, 2024

Could you make sure you're adding snippets via ls.add_snippets(ft, snippets)?

This might actually be it! I wasn't using ls.add_snippets() and after changing to it I haven't experienced the issue!

from cmp_luasnip.

wuilliam321 avatar wuilliam321 commented on June 12, 2024

Great! was the same for me!

from cmp_luasnip.

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.