Add supermaven
This commit is contained in:
parent
47104ea033
commit
19e2019f2f
4 changed files with 40 additions and 0 deletions
17
flake.lock
generated
17
flake.lock
generated
|
@ -799,6 +799,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nvim_plugin-supermaven-inc/supermaven-nvim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1728314930,
|
||||
"narHash": "sha256-1z3WKIiikQqoweReUyK5O8MWSRN5y95qcxM6qzlKMME=",
|
||||
"owner": "supermaven-inc",
|
||||
"repo": "supermaven-nvim",
|
||||
"rev": "07d20fce48a5629686aefb0a7cd4b25e33947d50",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "supermaven-inc",
|
||||
"repo": "supermaven-nvim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nvim_plugin-tpope/vim-sleuth": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -947,6 +963,7 @@
|
|||
"nvim_plugin-sindrets/diffview.nvim": "nvim_plugin-sindrets/diffview.nvim",
|
||||
"nvim_plugin-stevearc/conform.nvim": "nvim_plugin-stevearc/conform.nvim",
|
||||
"nvim_plugin-stevearc/dressing.nvim": "nvim_plugin-stevearc/dressing.nvim",
|
||||
"nvim_plugin-supermaven-inc/supermaven-nvim": "nvim_plugin-supermaven-inc/supermaven-nvim",
|
||||
"nvim_plugin-tpope/vim-sleuth": "nvim_plugin-tpope/vim-sleuth",
|
||||
"nvim_plugin-tpope/vim-surround": "nvim_plugin-tpope/vim-surround",
|
||||
"nvim_plugin-uga-rosa/ccc.nvim": "nvim_plugin-uga-rosa/ccc.nvim",
|
||||
|
|
|
@ -132,6 +132,8 @@
|
|||
"nvim_plugin-ron/ron.vim".flake = false;
|
||||
"nvim_plugin-nosduco/remote-sshfs.nvim".url = "github:nosduco/remote-sshfs.nvim";
|
||||
"nvim_plugin-nosduco/remote-sshfs.nvim".flake = false;
|
||||
"nvim_plugin-supermaven-inc/supermaven-nvim".url = "github:supermaven-inc/supermaven-nvim";
|
||||
"nvim_plugin-supermaven-inc/supermaven-nvim".flake = false;
|
||||
};
|
||||
outputs =
|
||||
{
|
||||
|
|
|
@ -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