diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2024-10-17 22:45:09 -0500 | 
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2024-10-17 22:45:09 -0500 | 
| commit | 75793a911de3648963385c70237fc737f1967e9d (patch) | |
| tree | b11f16785628c17ae0351d0a102ec95500ca9fd3 | |
| parent | cdd2c6110918c4ad221aee4a25a06c39987fd795 (diff) | |
| download | dotconfig-75793a911de3648963385c70237fc737f1967e9d.tar.xz dotconfig-75793a911de3648963385c70237fc737f1967e9d.zip  | |
nvim add tab complete
| -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  }  | 
