We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce1d863 commit fa307a8Copy full SHA for fa307a8
lua/plugins/completions.lua
@@ -19,7 +19,7 @@ return {
19
cmp.setup({
20
snippet = {
21
expand = function(args)
22
- require('luasnip').lsp_expand(args.body)
+ luasnip.lsp_expand(args.body)
23
end,
24
},
25
window = {
@@ -76,6 +76,9 @@ return {
76
matching = { disallow_symbol_nonprefix_matching = true }
77
})
78
79
+ -- expand javascript react snippets for javascript.
80
+ luasnip.filetype_extend( "javascript", { "html" })
81
+ luasnip.filetype_extend( "javascript", { "javascriptreact" })
82
-- this loads friendly-snippets as lazy-load.
83
require('luasnip.loaders.from_vscode').lazy_load()
84
end
0 commit comments