feat: disabled supermaven

This commit is contained in:
Kyren223
2024-09-16 12:47:32 +03:00
parent 87d7b3e1fd
commit c263f3a965

View File

@@ -1,41 +1,41 @@
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,
['help'] = 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,
},
-- '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,
-- ['help'] = 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,
-- },
}