Skip to content

Commit

Permalink
feat(completion): add supermaven-nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
taskylizard committed Aug 1, 2024
1 parent 61dcf3d commit aa6edb5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lua/astrocommunity/completion/supermaven-nvim/README.md
Original file line number Diff line number Diff line change
@@ -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: `<C-l>`
- Clear suggestion: `<C-h>`
- Accept word: `<C-w>`

**Repository**: <https://github.com/supermaven-inc/supermaven-nvim>
16 changes: 16 additions & 0 deletions lua/astrocommunity/completion/supermaven-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
return {
"supermaven-inc/supermaven-nvim",
event = "VeryLazy",
config = function()
require("supermaven-nvim").setup {
keymaps = {
accept_suggestion = "<C-l>",
clear_suggestion = "<C-h>",
accept_word = "<C-w>",
},
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,
}

0 comments on commit aa6edb5

Please sign in to comment.