Added supermaven autocompletion

This commit is contained in:
Fred Drake
2024-09-30 19:02:41 -04:00
parent ea3f25a3d2
commit 2644df6d7c
4 changed files with 26 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
{ pkgs, ... }: {
extraPlugins = [ pkgs.vimPlugins.supermaven-nvim ];
extraConfigLua = ''
require("supermaven-nvim").setup({
keymaps = {
accept_suggestion = "<Tab>",
clear_suggestion = "<C-]>",
accept_word = "<C-j>",
},
ignore_filetypes = { cpp = true }, -- or { "cpp", }
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, -- disables built in keymaps for more manual control
condition = function()
return false
end -- condition to check for stopping supermaven, `true` means to stop supermaven when the condition is true.
})
'';
}