update config

This commit is contained in:
2023-03-01 16:54:47 -08:00
parent dda7fdaf67
commit 82dca24ece
3 changed files with 47 additions and 11 deletions

View File

@@ -29,13 +29,18 @@ require('packer').startup(function(use)
refresh = "gr",
open = "<C-CR>"
},
layout = {
position = "right", -- | top | left | right
ratio = 0.4
},
},
suggestion = {
enabled = true,
auto_trigger = true,
debounce = 75,
keymap = {
accept = "<Tab>",
-- accept = "<Tab>",
accept = "<Right>",
next = "<M-]>",
prev = "<M-[>",
dismiss = "<C-]>",
@@ -54,7 +59,15 @@ require('packer').startup(function(use)
-- },
copilot_node_command = 'node', -- Node version must be < 18
plugin_manager_path = vim.fn.stdpath("data") .. "/site/pack/packer",
server_opts_overrides = {},
server_opts_overrides = {
trace = "verbose",
settings = {
advanced = {
listCount = 10, -- #completions for panel
inlineSuggestCount = 4, -- #completions for getCompletions
}
},
}
})
require("copilot.suggestion").toggle_auto_trigger()
end, 100)
@@ -172,6 +185,9 @@ require('packer').startup(function(use)
use {
'hrsh7th/cmp-path'
}
use {
'hrsh7th/cmp-cmdline'
}
use {
'hrsh7th/cmp-buffer'
}
@@ -269,6 +285,14 @@ require('packer').startup(function(use)
},
},
},
settings_window = {
border = {
style = "rounded",
text = {
top = " Settings ",
},
},
},
chat_input = {
prompt = "",
border = {
@@ -292,11 +316,21 @@ require('packer').startup(function(use)
top_p = 1,
n = 1,
},
openai_edit_params = {
-- model = "code-davinci-edit-001",
model = "gpt-3.5-turbo",
temperature = 0,
top_p = 1,
n = 1,
},
keymaps = {
close = "<C-c>",
close = { "<C-c>", "<Esc>" },
yank_last = "<C-y>",
scroll_up = "<C-u>",
scroll_down = "<C-d>",
toggle_settings = "<C-o>",
new_session = "<C-n>",
cycle_windows = "<Right>",
}
}
)end,