diff options
-rw-r--r-- | nvim/.config/nvim/lazy-lock.json | 4 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/plugins/cmp.lua | 11 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/plugins/luasnip.lua | 24 |
3 files changed, 0 insertions, 39 deletions
diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index c70321e..ba44e9b 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -1,7 +1,5 @@ { "Comment.nvim": { "branch": "master", "commit": "2a165144ffdf6e1fbe7127f39cd185d5d111927f" }, - "LuaSnip": { "branch": "master", "commit": "5570fd797eae0790affb54ea669a150cad76db5d" }, - "LuaSnip-snippets.nvim": { "branch": "main", "commit": "d7e40e4cce622eab2316607dbcd8d6039bcb9fe0" }, "SchemaStore.nvim": { "branch": "main", "commit": "ceebc0d0e5f6fe48c7739331e05c3843c07ade37" }, "alpha-nvim": { "branch": "main", "commit": "21a0f2520ad3a7c32c0822f943368dc063a569fb" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, @@ -17,12 +15,10 @@ "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "d2768cb1b83de649d57d967085fe73c5e01f8fd7" }, "cmp-nvim-lua": { "branch": "main", "commit": "d276254e7198ab7d00f117e88e223b4bd8c02d21" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, - "cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" }, "crates.nvim": { "branch": "main", "commit": "a70328ae638e20548bcfc64eb9561101104b3008" }, "diffview.nvim": { "branch": "main", "commit": "3812e296d3977a24db62f7c18025755b40968d3a" }, "dressing.nvim": { "branch": "master", "commit": "4436d6f41e2f6b8ada57588acd1a9f8b3d21453c" }, "fidget.nvim": { "branch": "main", "commit": "44585a0c0085765195e6961c15529ba6c5a2a13b" }, - "friendly-snippets": { "branch": "main", "commit": "1a6a02350568d6830bcfa167c72f9b6e75e454ae" }, "fzf": { "branch": "master", "commit": "8e283f512acb74faef6f1760927e1ef4da1b5263" }, "git-conflict.nvim": { "branch": "main", "commit": "77faa75c09a6af88e7b54d8d456327e06611f7ea" }, "gitsigns.nvim": { "branch": "main", "commit": "2ab3bdf0a40bab53033048c6be75bda86316b55d" }, diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/cmp.lua b/nvim/.config/nvim/lua/tobyvin/plugins/cmp.lua index c5f95ed..e7644d4 100644 --- a/nvim/.config/nvim/lua/tobyvin/plugins/cmp.lua +++ b/nvim/.config/nvim/lua/tobyvin/plugins/cmp.lua @@ -13,8 +13,6 @@ local M = { "Dosx001/cmp-commit", "davidsierradz/cmp-conventionalcommits", "ray-x/lsp_signature.nvim", - "L3MON4D3/LuaSnip", - "saadparwaiz1/cmp_luasnip", "saecki/crates.nvim", "kdheepak/cmp-latex-symbols", }, @@ -36,19 +34,12 @@ function M.config() return (default.enabled() or require("cmp_dap").is_dap_buffer()) and not in_comment() end - local expand_snip = function(args) - require("luasnip").lsp_expand(args.body) - end - cmp.setup.global({ enabled = enabled, window = { completion = cmp.config.window.bordered({ border = "single" }), documentation = cmp.config.window.bordered({ border = "single" }), }, - snippet = { - expand = expand_snip, - }, mapping = cmp.mapping.preset.insert({ ["<Tab>"] = { i = cmp.mapping.select_next_item() }, ["<S-Tab>"] = { i = cmp.mapping.select_prev_item() }, @@ -60,7 +51,6 @@ function M.config() sources = { { name = "nvim_lsp" }, { name = "nvim_lsp_signature_help" }, - { name = "luasnip" }, { name = "path" }, { name = "dap" }, }, @@ -97,7 +87,6 @@ function M.config() sources = { { name = "nvim_lsp", group_index = 1 }, { name = "nvim_lsp_signature_help", group_index = 1 }, - { name = "luasnip", group_index = 1 }, { name = "path", group_index = 1 }, { name = "dap", group_index = 1 }, { name = "buffer", keyword_length = 3, group_index = 2 }, diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/luasnip.lua b/nvim/.config/nvim/lua/tobyvin/plugins/luasnip.lua deleted file mode 100644 index 588592d..0000000 --- a/nvim/.config/nvim/lua/tobyvin/plugins/luasnip.lua +++ /dev/null @@ -1,24 +0,0 @@ -local M = { - "L3MON4D3/LuaSnip", - dependencies = { - { - "rafamadriz/friendly-snippets", - config = function() - require("luasnip.loaders.from_vscode").lazy_load() - end, - }, - "molleweide/LuaSnip-snippets.nvim", - }, -} - -function M.config() - local luasnip = require("luasnip") - - luasnip.config.set_config({ - updateevents = "TextChanged,TextChangedI", - }) - - luasnip.snippets = require("luasnip_snippets").load_snippets() -end - -return M |