From ba163e76292c72aa8974000311d67063b0515055 Mon Sep 17 00:00:00 2001 From: Gustavo Date: Thu, 21 Aug 2025 11:06:12 +0200 Subject: [PATCH] feat: add inline completion --- lua/custom/plugins/supermaven.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lua/custom/plugins/supermaven.lua diff --git a/lua/custom/plugins/supermaven.lua b/lua/custom/plugins/supermaven.lua new file mode 100644 index 00000000..318654c3 --- /dev/null +++ b/lua/custom/plugins/supermaven.lua @@ -0,0 +1,22 @@ +return { + 'supermaven-inc/supermaven-nvim', + config = function() + require('supermaven-nvim').setup { + keymaps = { + accept_suggestion = '', + clear_suggestion = '', + accept_word = '', + }, + ignore_filetypes = { cpp = true }, -- or { "cpp", } + color = { + cterm = 244, + }, + log_level = 'info', -- set to "off" to disable logging completely + disable_inline_completion = false, -- disables inline completion for use with cmp + disable_keymaps = false, -- disables built in keymaps for more manual control + condition = function() + return false + end, -- condition to check for stopping supermaven, `true` means to stop supermaven when the condition is true.} + } + end, +}