diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2024-08-30 15:03:49 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2024-08-30 15:03:49 -0300 |
| commit | 15ea0d5ae7c393493407ffb0c151656cc27ee01b (patch) | |
| tree | 9801a15530101dc240e32c835758d9014a08e92a /lua/plugins | |
| parent | 6aad358b5f325c584f009479f08f0205c43b7e7b (diff) | |
| download | nvim-conf-15ea0d5ae7c393493407ffb0c151656cc27ee01b.tar.gz nvim-conf-15ea0d5ae7c393493407ffb0c151656cc27ee01b.zip | |
Feat: suport for cmp-ai
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/cmp-ai.lua | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/lua/plugins/cmp-ai.lua b/lua/plugins/cmp-ai.lua new file mode 100644 index 0000000..5431187 --- /dev/null +++ b/lua/plugins/cmp-ai.lua @@ -0,0 +1,59 @@ +return { + "ElvisClaros/cmp-ai", + dependencies = "nvim-lua/plenary.nvim", + config = function() + local cmp_ai = require "cmp_ai.config" + cmp_ai:setup { + max_lines = 10, + provider = "LlamaCPP", + provider_options = { + model = "null", + }, + notify = false, + notify_callback = function(msg) + vim.notify(msg) + end, + run_on_every_keystroke = true, + ignored_file_types = { + -- default is not to ignore + -- uncomment to ignore in lua: + -- lua = true + }, + } + + -- cmp_ai:setup { + -- max_lines = 10, + -- provider = "Ollama", + -- provider_options = { + -- model = "tinyllama:1.1b", + -- }, + -- notify = false, + -- notify_callback = function(msg) + -- vim.notify(msg) + -- end, + -- run_on_every_keystroke = true, + -- ignored_file_types = { + -- -- default is not to ignore + -- -- uncomment to ignore in lua: + -- -- lua = true + -- }, + -- } + -- cmp_ai:setup { + -- max_lines = 10, + -- provider = "OpenAI", + -- provider_options = { + -- model = "gpt-4", + -- }, + -- notify = true, + -- notify_callback = function(msg) + -- vim.notify(msg) + -- end, + -- run_on_every_keystroke = true, + -- ignored_file_types = { + -- -- default is not to ignore + -- -- uncomment to ignore in lua: + -- -- lua = true + -- }, + -- } + end, +} |