From aa6edb56e70a152186461d0c7ef44fff00992cea Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:00:15 +0000 Subject: [PATCH] feat(completion): add supermaven-nvim --- .../completion/supermaven-nvim/README.md | 16 ++++++++++++++++ .../completion/supermaven-nvim/init.lua | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 lua/astrocommunity/completion/supermaven-nvim/README.md create mode 100644 lua/astrocommunity/completion/supermaven-nvim/init.lua diff --git a/lua/astrocommunity/completion/supermaven-nvim/README.md b/lua/astrocommunity/completion/supermaven-nvim/README.md new file mode 100644 index 000000000..17b31f233 --- /dev/null +++ b/lua/astrocommunity/completion/supermaven-nvim/README.md @@ -0,0 +1,16 @@ +# supermaven-nvim + +> [!NOTE] +> You should probably read their [Code Policy](https://supermaven.com/code-policy) before running this plugin, if code retention concerns you. + +The official Neovim plugin for [Supermaven](https://supermaven.com). + +Upon startup, you will be prompted to either use the Free Tier with the command `:SupermavenUseFree` or to activate a Supermaven Pro subscription by following a link, which will connect your Supermaven account. + +Keybinds: + +- Accept suggestion: `` +- Clear suggestion: `` +- Accept word: `` + +**Repository**: diff --git a/lua/astrocommunity/completion/supermaven-nvim/init.lua b/lua/astrocommunity/completion/supermaven-nvim/init.lua new file mode 100644 index 000000000..0a403db5a --- /dev/null +++ b/lua/astrocommunity/completion/supermaven-nvim/init.lua @@ -0,0 +1,16 @@ +return { + "supermaven-inc/supermaven-nvim", + event = "VeryLazy", + config = function() + require("supermaven-nvim").setup { + keymaps = { + accept_suggestion = "", + clear_suggestion = "", + accept_word = "", + }, + log_level = "warn", + disable_inline_completion = false, -- disables inline completion for use with cmp + disable_keymaps = false, -- disables built in keymaps for more manual control + } + end, +}