diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-08-08 01:23:40 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-08-08 01:23:40 +0300 |
| commit | 2e507e488bdb8ba2af6e1fa0297673d3d0d7aa37 (patch) | |
| tree | 7ee17540e19e92ca323dde7bede620c23aeb5ed4 /.config/nvim/lua/custom | |
| parent | c723fb8daeaa18439598d46cea0c956278479673 (diff) | |
feat(nvim): added supermaven (AI autocompletion)
Diffstat (limited to '.config/nvim/lua/custom')
| -rw-r--r-- | .config/nvim/lua/custom/plugins/supermaven.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.config/nvim/lua/custom/plugins/supermaven.lua b/.config/nvim/lua/custom/plugins/supermaven.lua new file mode 100644 index 0000000..d6a92a5 --- /dev/null +++ b/.config/nvim/lua/custom/plugins/supermaven.lua @@ -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, + }, +} |
