From ba6ebec17e2ad466a8b869ee6e4f4b99ae7e450c Mon Sep 17 00:00:00 2001 From: Sahid Rahman Date: Fri, 13 Jan 2023 19:25:29 +0700 Subject: [PATCH] add snippets --- lazy-lock.json | 12 ++++++------ lua/config/lua_snip | 1 + lua/config/options.lua | 4 +++- 3 files changed, 10 insertions(+), 7 deletions(-) create mode 160000 lua/config/lua_snip diff --git a/lazy-lock.json b/lazy-lock.json index d5d8d71..c2f2e78 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -5,23 +5,24 @@ "cmp-nvim-lsp": { "branch": "main", "commit": "59224771f91b86d1de12570b4070fe4ad7cd1eeb" }, "cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" }, "fidget.nvim": { "branch": "main", "commit": "44585a0c0085765195e6961c15529ba6c5a2a13b" }, - "friendly-snippets": { "branch": "main", "commit": "a7d3b945fe72c2b007266dceb28b7fbc1c72b4a6" }, "git-worktree.nvim": { "branch": "master", "commit": "d7f4e2584e81670154f07ca9fa5dd791d9c1b458" }, "gitsigns.nvim": { "branch": "main", "commit": "addd6e174a85fc1c4007ab0b65d77e6555b417bf" }, "harpoon": { "branch": "master", "commit": "21d0d1bfa3000e4384740bfaefa0ebc51c773786" }, "indent-blankline.nvim": { "branch": "master", "commit": "c4c203c3e8a595bc333abaf168fcb10c13ed5fb7" }, - "lazy.nvim": { "branch": "main", "commit": "70e5e08dc12613006ee86489291929c592f1145d" }, + "lazy.nvim": { "branch": "main", "commit": "666ed7bf73eb5895253c1155bd29270b066cbdac" }, "lazygit.nvim": { "branch": "main", "commit": "32bffdebe273e571588f25c8a708ca7297928617" }, "lightspeed.nvim": { "branch": "main", "commit": "299eefa6a9e2d881f1194587c573dad619fdb96f" }, "lualine.nvim": { "branch": "master", "commit": "0050b308552e45f7128f399886c86afefc3eb988" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "3751eb5c56c67b51e68a1f4a0da28ae74ab771c1" }, - "mason.nvim": { "branch": "main", "commit": "4d734aee41efce4f1a4be7619ad040b53237042e" }, + "mason.nvim": { "branch": "main", "commit": "20436198aa1ef8c38e6ba59155e96177778891a3" }, "neovim": { "branch": "main", "commit": "8e800a99993a318f42af260f522a293b49c5adf7" }, "null-ls.nvim": { "branch": "main", "commit": "915558963709ea17c5aa246ca1c9786bfee6ddb4" }, "nvim-cmp": { "branch": "main", "commit": "11a95792a5be0f5a40bab5fc5b670e5b1399a939" }, - "nvim-lspconfig": { "branch": "master", "commit": "f0221821d8ceed70f0525a2c35380ba56672e107" }, + "nvim-dap": { "branch": "master", "commit": "b8201fd104287e9c24f898f1f7f5202896eea203" }, + "nvim-dap-ui": { "branch": "master", "commit": "b80227ea56a48177786904f6322abc8b2dc0bc36" }, + "nvim-lspconfig": { "branch": "master", "commit": "f7ebb0fed4b952c77bb5827db030405f2d6cd4e7" }, "nvim-tree.lua": { "branch": "master", "commit": "3ce0a8e770f70a135ef969e0a640bd8d05baf42c" }, - "nvim-treesitter": { "branch": "master", "commit": "9a257d989a526c413a28c252c4ec9113a7d35a28" }, + "nvim-treesitter": { "branch": "master", "commit": "51d220e0bd8922caabcb3e5de936fc599a1bd210" }, "nvim-treesitter-context": { "branch": "master", "commit": "cacee4828152dd3a83736169ae61bbcd29a3d213" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "a8c86f48c1030acee22b9e071e3c531de77bf253" }, "nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" }, @@ -32,7 +33,6 @@ "surround.nvim": { "branch": "master", "commit": "36c253d6470910692491b13382f54c9bab2811e1" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "fab3e2212e206f4f8b3bbaa656e129443c9b802e" }, "telescope.nvim": { "branch": "0.1.x", "commit": "f7bceabcc9dc049141ab0ea9e6301c0d21dbda57" }, - "toggleterm.nvim": { "branch": "main", "commit": "2a787c426ef00cb3488c11b14f5dcf892bbd0bda" }, "trouble.nvim": { "branch": "main", "commit": "83ec606e7065adf134d17f4af6bae510e3c491c1" }, "undotree": { "branch": "master", "commit": "1a23ea84bd02c34f50d8e10a8b4bfc89597ffe4e" }, "vim-sleuth": { "branch": "master", "commit": "8332f123a63c739c870c96907d987cc3ff719d24" } diff --git a/lua/config/lua_snip b/lua/config/lua_snip new file mode 160000 index 0000000..45698b3 --- /dev/null +++ b/lua/config/lua_snip @@ -0,0 +1 @@ +Subproject commit 45698b3d193fff404c3c9c30d25dc138a729d64b diff --git a/lua/config/options.lua b/lua/config/options.lua index f21c5e8..c6608a2 100755 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -54,4 +54,6 @@ vim.opt.isfname:append("@-@") vim.opt.colorcolumn = "80" vim.opt.incsearch = true -require("luasnip.loaders.from_vscode").lazy_load() +require("luasnip.loaders.from_vscode").lazy_load({ + paths = { "./lua_snip" }, +})