Add supermaven

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-06-10 08:54:27 -05:00
parent 47104ea033
commit 19e2019f2f
4 changed files with 40 additions and 0 deletions

View file

@ -83,6 +83,9 @@ return {
["<C-c>"] = cmp.mapping.complete({}),
}),
sources = {
{
name = "supermaven", priority = 10, max_item_count = 5,
},
{
name = "copilot",
priority = 9,

View file

@ -0,0 +1,18 @@
return {
"supermaven-inc/supermaven-nvim",
event = "VeryLazy",
opts = {
keymaps = {
accept_suggestion = "<C-space>",
-- clear_suggestion = "<C-]>",
accept_word = "<C-enter>",
},
ignore_filetypes = { "age" },
-- disable_inline_completion = true,
-- disable_keymaps = true,
condition = function()
local matches = vim.fn.expand("%:t"):match("^%.env") or vim.fn.expand("%:t"):match("^%.envrc")
return not matches
end,
},
}