From 09004f4517eba8f57d37897e34f6ba56ad3653f1 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 1 Nov 2023 06:42:48 -0400 Subject: stop using neovim.nix i had small, but annoying issues here and i don't care for lazy loading much tbh --- plugins/cmp.lua | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 plugins/cmp.lua (limited to 'plugins/cmp.lua') diff --git a/plugins/cmp.lua b/plugins/cmp.lua deleted file mode 100644 index a61dc4a..0000000 --- a/plugins/cmp.lua +++ /dev/null @@ -1,38 +0,0 @@ -return function() - local cmp = require("cmp") - local luasnip = require("luasnip") - local mapping = cmp.mapping - - return { - completion = { - completeopt = "menu,menuone,noinsert", - }, - - snippet = { - expand = function(args) - luasnip.lsp_expand(args.body) - end, - }, - - mapping = mapping.preset.insert({ - [""] = mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }), - [""] = mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }), - [""] = mapping.scroll_docs(-4), - [""] = mapping.scroll_docs(4), - [""] = mapping.complete(), - [""] = mapping.abort(), - [""] = mapping.confirm({ select = true }), - [""] = mapping.confirm({ - behavior = cmp.ConfirmBehavior.Replace, - select = true, - }), - }), - - sources = cmp.config.sources({ - { name = "nvim_lsp" }, - { name = "luasnip" }, - { name = "async_path" }, - { name = "buffer" }, - }), - } -end -- cgit v1.2.3