aboutsummaryrefslogtreecommitdiff
path: root/store/home/config/nvim/lua/setup/plugins/cmp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'store/home/config/nvim/lua/setup/plugins/cmp.lua')
-rw-r--r--store/home/config/nvim/lua/setup/plugins/cmp.lua30
1 files changed, 0 insertions, 30 deletions
diff --git a/store/home/config/nvim/lua/setup/plugins/cmp.lua b/store/home/config/nvim/lua/setup/plugins/cmp.lua
deleted file mode 100644
index be9f8ea..0000000
--- a/store/home/config/nvim/lua/setup/plugins/cmp.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local function setup()
- local cmp = require("cmp")
-
- cmp.setup {
- snippet = {
- expand = function(args)
- vim.snippet.expand(args.body)
- end,
- },
- mapping = cmp.mapping.preset.insert({
- ['<C-b>'] = cmp.mapping.scroll_docs(-4),
- ['<C-f>'] = cmp.mapping.scroll_docs(4),
- ['<C-j>'] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),
- ['<C-k>'] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }),
- ['<C-e>'] = cmp.mapping.abort(),
- ['<C-y>'] = cmp.mapping.confirm({ select = true }),
- ['<CR>'] = cmp.mapping.confirm({ select = true }),
- }),
- sources = cmp.config.sources({
- { name = 'nvim_lsp' },
- { name = 'path' },
- }, {
- { name = 'buffer' },
- })
- }
-end
-
-return {
- setup = setup
-}