You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the blink.cmp documentation, it is possible to enable additional snippets for specified file types using the extended_filetypes option while using friendly-snippets. I would like to do this so that I can enable friendly-snippets's Unity snippets on top of the the usual c# snippets while editing .cs files.
I've looked through the nvf documentation, and I don't think I see any options for configuring extended_filetypes.
The following code is taken from the blink.cmp documentation:
sources = {
providers = {
snippets = {
opts = {
friendly_snippets = true, -- default
-- see the list of frameworks in: https://github.com/rafamadriz/friendly-snippets/tree/main/snippets/frameworks
-- and search for possible languages in: https://github.com/rafamadriz/friendly-snippets/blob/main/package.json
-- the following is just an example, you should only enable the frameworks that you use
extended_filetypes = {
markdown = { 'jekyll' },
sh = { 'shelldoc' },
php = { 'phpdoc' },
cpp = { 'unreal' }
}
}
}
}
}
Is there a way to add something like this to an nvf config?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
According to the
blink.cmpdocumentation, it is possible to enable additional snippets for specified file types using theextended_filetypesoption while usingfriendly-snippets. I would like to do this so that I can enablefriendly-snippets's Unity snippets on top of the the usual c# snippets while editing.csfiles.I've looked through the nvf documentation, and I don't think I see any options for configuring
extended_filetypes.The following code is taken from the
blink.cmpdocumentation:Is there a way to add something like this to an nvf config?
Any help would be greatly appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions