aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorSamPosh <samselvaprabu@gmail.com>2023-05-02 16:01:46 +0530
committerGitHub <noreply@github.com>2023-05-02 16:01:46 +0530
commit55c52ce45bea8395e79d43dc6e5490c23b06a95b (patch)
tree51ae694f9ab7658de4a2ebbd996529d429c4e0e1 /init.lua
parent0470d07c8c44f270bd64d0d11f5ebb8d994a1c00 (diff)
Added friendly snippet support
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 7fd9c54..2d377d2 100644
--- a/init.lua
+++ b/init.lua
@@ -93,7 +93,7 @@ require('lazy').setup({
{ -- Autocompletion
'hrsh7th/nvim-cmp',
- dependencies = { 'hrsh7th/cmp-nvim-lsp', 'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip' },
+ dependencies = { 'hrsh7th/cmp-nvim-lsp', 'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip',"rafamadriz/friendly-snippets", },
},
-- Useful plugin to show you pending keybinds.
@@ -447,7 +447,7 @@ mason_lspconfig.setup_handlers {
-- nvim-cmp setup
local cmp = require 'cmp'
local luasnip = require 'luasnip'
-
+require("luasnip.loaders.from_vscode").lazy_load()
luasnip.config.setup {}
cmp.setup {