restructured + addet scissors as the snippet enging
This commit is contained in:
parent
a98a9aa78d
commit
a00a4b136e
6 changed files with 21 additions and 148 deletions
|
@ -6,10 +6,8 @@ return {
|
|||
"hrsh7th/cmp-path", -- source for file system paths
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
-- follow latest release.
|
||||
version = "v2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
|
||||
-- install jsregexp (optional!).
|
||||
build = "make install_jsregexp",
|
||||
version = "v2.*", -- latest release of LuaSnip
|
||||
build = "make install_jsregexp", -- optional regex support for LuaSnip
|
||||
},
|
||||
"saadparwaiz1/cmp_luasnip", -- for autocompletion
|
||||
"rafamadriz/friendly-snippets", -- useful snippets
|
||||
|
@ -20,8 +18,9 @@ return {
|
|||
local luasnip = require("luasnip")
|
||||
local lspkind = require("lspkind")
|
||||
|
||||
-- loads vscode style snippets from installed plugins (e.g. friendly-snippets)
|
||||
-- Load snippets from friendly-snippets and custom directory
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
require("luasnip.loaders.from_vscode").lazy_load({ paths = { "~/.config/nvim/snippets" } })
|
||||
|
||||
cmp.setup({
|
||||
completion = {
|
||||
|
@ -77,4 +76,4 @@ return {
|
|||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue