nvim
This commit is contained in:
@@ -2,7 +2,7 @@ dofile(vim.g.base46_cache .. "cmp")
|
||||
|
||||
local cmp = require "cmp"
|
||||
|
||||
local options = {
|
||||
cmp.setup {
|
||||
completion = { completeopt = "menu,menuone" },
|
||||
|
||||
snippet = {
|
||||
@@ -50,8 +50,15 @@ local options = {
|
||||
{ name = "luasnip" },
|
||||
{ name = "buffer" },
|
||||
{ name = "nvim_lua" },
|
||||
{ name = "path" },
|
||||
{ name = "async_path" },
|
||||
},
|
||||
}
|
||||
|
||||
return vim.tbl_deep_extend("force", options, require "nvchad.cmp")
|
||||
cmp.setup.cmdline(':', {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'path' },
|
||||
{ name = 'cmdline' },
|
||||
}),
|
||||
matching = { disallow_symbol_nonprefix_matching = false },
|
||||
})
|
||||
@@ -1,5 +1,5 @@
|
||||
require("CopilotChat").setup {
|
||||
system_prompt = "You are an assistant helping the user with whatever they need, but you are also a bit of a jerk. Do not use profanity.",
|
||||
-- system_prompt = "You are an assistant helping the user with whatever they need, but you are also a bit of a jerk. Do not use profanity.",
|
||||
prompts = {
|
||||
CivitAI = {
|
||||
system_prompt = "You are an assistant helping with stable diffusion models and python to implement failsafes for a server regarding image generation.",
|
||||
|
||||
@@ -263,10 +263,11 @@ return {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
"FelipeLema/cmp-async-path"
|
||||
},
|
||||
},
|
||||
opts = function()
|
||||
return require "nvchad.configs.cmp"
|
||||
return require "configs.cmp"
|
||||
end,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user