summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/cmp.lua
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-05-13 19:32:22 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-05-13 19:32:22 -0400
commit2f3f91682f7b4a33f1791781bfa8eca4f7c9527a (patch)
treeeaf91e90301d87363bcb22dcd5c2253e0b0bad6d /.config/nvim/lua/plugins/cmp.lua
parentbe8c956b0e819f2db0c6ae3598b6590b62982a83 (diff)
new system on gentoo
Diffstat (limited to '.config/nvim/lua/plugins/cmp.lua')
-rw-r--r--.config/nvim/lua/plugins/cmp.lua53
1 files changed, 0 insertions, 53 deletions
diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua
deleted file mode 100644
index f515e17..0000000
--- a/.config/nvim/lua/plugins/cmp.lua
+++ /dev/null
@@ -1,53 +0,0 @@
-return {
- 'hrsh7th/nvim-cmp',
- event = { 'InsertEnter', 'CmdlineEnter' },
- dependencies = {
- 'saadparwaiz1/cmp_luasnip',
- 'hrsh7th/cmp-buffer',
- 'hrsh7th/cmp-cmdline',
- 'hrsh7th/cmp-path',
- },
- opts = function()
- local cmp = require('cmp')
- local select_opts = {behavior = cmp.SelectBehavior.Select}
-
- return {
- snippet = {
- expand = function(args)
- require('luasnip').lsp_expand(args.body)
- end,
- },
- mapping = {
- ['<C-p>'] = cmp.mapping.select_prev_item(select_opts),
- ['<C-n>'] = cmp.mapping.select_next_item(select_opts),
- ['<C-u>'] = cmp.mapping.scroll_docs(-4),
- ['<C-d>'] = cmp.mapping.scroll_docs(4),
- ['<C-e>'] = cmp.mapping.abort(),
- ['<Tab>'] = cmp.mapping.confirm({select = true}),
- },
- sources = cmp.config.sources({
- { name = 'nvim_lsp', max_item_count = 5, keyword_length = 1 },
- { name = "luasnip", max_item_count = 5, keyword_length = 2 },
- }, {
- { name = 'buffer', max_item_count = 2, keyword_length = 3 },
- }, {
- { name = 'path', max_item_count = 2 },
- }),
- sorting = {
- comparators = {
- cmp.config.compare.offset,
- cmp.config.compare.exact,
- --cmp.config.compare.scopes,
- cmp.config.compare.score,
-
- cmp.config.compare.locality,
- cmp.config.compare.kind,
- --cmp.config.compare.sort_text,
- cmp.config.compare.length,
- cmp.config.compare.order,
- },
- },
- }
- end,
-}
-