Add supermaven
This commit is contained in:
parent
47104ea033
commit
19e2019f2f
4 changed files with 40 additions and 0 deletions
|
@ -83,6 +83,9 @@ return {
|
|||
["<C-c>"] = cmp.mapping.complete({}),
|
||||
}),
|
||||
sources = {
|
||||
{
|
||||
name = "supermaven", priority = 10, max_item_count = 5,
|
||||
},
|
||||
{
|
||||
name = "copilot",
|
||||
priority = 9,
|
||||
|
|
18
lua/plugins/supermaven.lua
Normal file
18
lua/plugins/supermaven.lua
Normal 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,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue