feat(nvim): add friendly-snippets
This commit is contained in:
parent
83b51ebdf4
commit
5864c63cf3
3 changed files with 4 additions and 1 deletions
|
@ -62,7 +62,7 @@ cmp.setup {
|
||||||
},
|
},
|
||||||
|
|
||||||
experimental = {
|
experimental = {
|
||||||
ghost_text = false,
|
ghost_text = true,
|
||||||
native_menu = false,
|
native_menu = false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,8 @@ ls.add_snippets("js", snippets.javascript)
|
||||||
ls.add_snippets("typescript", snippets.javascript)
|
ls.add_snippets("typescript", snippets.javascript)
|
||||||
ls.add_snippets("vue", snippets.javascript)
|
ls.add_snippets("vue", snippets.javascript)
|
||||||
|
|
||||||
|
require("luasnip.loaders.from_vscode").lazy_load()
|
||||||
|
|
||||||
ls.config.set_config {
|
ls.config.set_config {
|
||||||
enable_autosnippets = true,
|
enable_autosnippets = true,
|
||||||
history = true,
|
history = true,
|
||||||
|
|
|
@ -589,6 +589,7 @@ in
|
||||||
vimPlugins.phpactor
|
vimPlugins.phpactor
|
||||||
|
|
||||||
# Snippets
|
# Snippets
|
||||||
|
vimPlugins.friendly-snippets
|
||||||
vimPlugins.luasnip
|
vimPlugins.luasnip
|
||||||
|
|
||||||
# Telescope
|
# Telescope
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue