supermaven
This commit is contained in:
+14
-2
@@ -1,13 +1,25 @@
|
||||
local lspkind = require "lspkind"
|
||||
|
||||
local nvchad_options = require "nvchad.configs.cmp"
|
||||
|
||||
local options = {
|
||||
sources = {
|
||||
-- { name = "supermaven" },
|
||||
{ name = "nvim_lsp" },
|
||||
-- { name = "cmp_ai" },
|
||||
{ name = "luasnip" },
|
||||
{ name = "copilot" },
|
||||
{ name = "buffer" },
|
||||
{ name = "nvim_lua" },
|
||||
{ name = "path" },
|
||||
},
|
||||
|
||||
formatting = {
|
||||
format = lspkind.cmp_format {
|
||||
mode = "symbol",
|
||||
max_width = 50,
|
||||
symbol_map = { Supermaven = "" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return options
|
||||
return vim.tbl_deep_extend("force", nvchad_options, options)
|
||||
|
||||
@@ -14,3 +14,4 @@ o.smartcase = true
|
||||
o.gdefault = true
|
||||
|
||||
o.fillchars = "eob: ,diff: "
|
||||
o.scrolloff = 5
|
||||
|
||||
@@ -2,10 +2,25 @@ return {
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
opts = function()
|
||||
require "configs.cmp"
|
||||
return require "configs.cmp"
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"supermaven-inc/supermaven-nvim",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("supermaven-nvim").setup {
|
||||
keymaps = {
|
||||
accept_suggestion = "<C-Enter>",
|
||||
},
|
||||
-- disable_inline_completion = true,
|
||||
}
|
||||
end,
|
||||
},
|
||||
|
||||
{ "onsails/lspkind.nvim", event = "VeryLazy" },
|
||||
|
||||
-- {
|
||||
-- "zbirenbaum/copilot.lua",
|
||||
-- cmd = "Copilot",
|
||||
|
||||
Reference in New Issue
Block a user