feat(nvim): added supermaven (AI autocompletion)

This commit is contained in:
Kyren223
2024-08-08 01:23:40 +03:00
parent c723fb8dae
commit 2e507e488b
2 changed files with 41 additions and 0 deletions

View File

@@ -54,6 +54,7 @@
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
"pretty_hover": { "branch": "master", "commit": "5b0688954447d65e13cba548305700b0af8d4831" },
"rustaceanvim": { "branch": "master", "commit": "047f9c9d8cd2861745eb9de6c1570ee0875aa795" },
"supermaven-nvim": { "branch": "main", "commit": "d71257f431e190d9236d7f30da4c2d659389e91f" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" },

View File

@@ -0,0 +1,40 @@
return {
'supermaven-inc/supermaven-nvim',
event = 'VeryLazy',
keys = {
{
'<leader>sm',
function()
local api = require('supermaven-nvim.api')
if api.is_running() then
Notify('Enabled Supermaven', 'Supermaven')
api.stop()
else
Notify('Disabled Supermaven', 'Supermaven')
api.start()
end
end,
desc = '[S]upermaven [T]oggle',
},
},
opts = {
keymaps = {
accept_suggestion = '<C-y>',
clear_suggestion = '<C-]>',
accept_word = nil,
},
ignore_filetypes = {
markdown = true,
['NeogitStatus'] = true,
['NeogitPopup'] = true,
['NeogitCommitMessage'] = true,
},
color = {
suggestion_color = '#ffffff',
cterm = 244,
},
log_level = 'info', -- set to "off" to disable logging completely
disable_inline_completion = false, -- disables inline completion for use with cmp
disable_keymaps = false,
},
}