Neovim: add friendly-snippets

This commit is contained in:
Marko Korhonen 2022-02-16 11:24:36 +02:00
parent 00d8d65c49
commit 312634e010
2 changed files with 4 additions and 0 deletions

View file

@ -51,3 +51,6 @@ cmp.setup {
{ name = 'luasnip' },
},
}
-- load friendly-snippets to luasnip
require("luasnip/loaders/from_vscode").lazy_load()

View file

@ -70,6 +70,7 @@ require('packer').startup(function()
use 'hrsh7th/cmp-path' -- Path source for nvim-cmp
use 'saadparwaiz1/cmp_luasnip' -- Snippets source for nvim-cmp
use 'L3MON4D3/LuaSnip' -- Snippets plugin
use "rafamadriz/friendly-snippets" -- Snippets collection
-- treesitter syntax highlight
use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}