feat: enhance Neovim configuration and add community plugins
This commit is contained in:
1 parent
2cd17abf76
commit
e1c47171e4
10 files changed
+180
-143
No files matched your search
@@ -0,0 +1,29 @@
|
||||
return {
|
||||
"supermaven-inc/supermaven-nvim",
|
||||
event = "InsertEnter",
|
||||
cmd = { "SupermavenUseFree", "SupermavenUsePro" },
|
||||
opts = {
|
||||
keymaps = {
|
||||
accept_suggestion = nil, -- handled by completion engine
|
||||
},
|
||||
},
|
||||
specs = {
|
||||
{
|
||||
"AstroNvim/astrocore",
|
||||
opts = {
|
||||
options = {
|
||||
g = {
|
||||
-- set the ai_accept function
|
||||
ai_accept = function()
|
||||
local suggestion = require "supermaven-nvim.completion_preview"
|
||||
if suggestion.has_suggestion() then
|
||||
vim.schedule(function() suggestion.on_accept_suggestion() end)
|
||||
return true
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user