diff options
| -rw-r--r-- | nvim/lua/tjk/plugins/cmp.lua | 10 | 
1 files changed, 9 insertions, 1 deletions
diff --git a/nvim/lua/tjk/plugins/cmp.lua b/nvim/lua/tjk/plugins/cmp.lua index 59ce630..1a3cf2f 100644 --- a/nvim/lua/tjk/plugins/cmp.lua +++ b/nvim/lua/tjk/plugins/cmp.lua @@ -12,7 +12,15 @@ return {  				{ name = "path" },  				{ name = "buffer" },  				{ name = "treesitter" }, -			} +			}, +			mapping = cmp.mapping.preset.insert { +				--['<C-b>'] = cmp.mapping.scroll_docs(-4), +				--['<C-f>'] = cmp.mapping.scroll_docs(4), +				--['<C-Space>'] = cmp.mapping.complete(), +				--['<C-e>'] = cmp.mapping.abort(), +				--['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. +				['<Tab>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. +			},  		}  	end  }  | 
