summaryrefslogtreecommitdiff
path: root/plugins/cmp.lua
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-01 06:42:48 -0400
committerseth <[email protected]>2023-11-01 06:42:48 -0400
commit09004f4517eba8f57d37897e34f6ba56ad3653f1 (patch)
tree6ae19b13a2694fe852caa6c77665af24ea59fe9e /plugins/cmp.lua
parentca59ebcf3dd17153b90a0ceca86af14db941ac3c (diff)
stop using neovim.nix
i had small, but annoying issues here and i don't care for lazy loading much tbh
Diffstat (limited to 'plugins/cmp.lua')
-rw-r--r--plugins/cmp.lua38
1 files changed, 0 insertions, 38 deletions
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({
- ["<C-n>"] = mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
- ["<C-p>"] = mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
- ["<C-b>"] = mapping.scroll_docs(-4),
- ["<C-f>"] = mapping.scroll_docs(4),
- ["<C-Space>"] = mapping.complete(),
- ["<C-e>"] = mapping.abort(),
- ["<CR>"] = mapping.confirm({ select = true }),
- ["<S-CR>"] = mapping.confirm({
- behavior = cmp.ConfirmBehavior.Replace,
- select = true,
- }),
- }),
-
- sources = cmp.config.sources({
- { name = "nvim_lsp" },
- { name = "luasnip" },
- { name = "async_path" },
- { name = "buffer" },
- }),
- }
-end