mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
oil.nvim
This commit is contained in:
parent
23bd257c9e
commit
9b0cab9709
7 changed files with 78 additions and 144 deletions
|
|
@ -4,48 +4,11 @@ return {
|
|||
cmd = 'Copilot',
|
||||
opts = {
|
||||
panel = {
|
||||
enabled = true,
|
||||
auto_refresh = false,
|
||||
keymap = {
|
||||
jump_prev = '<C-p>',
|
||||
jump_next = '<C-n>',
|
||||
accept = '<C-y>',
|
||||
toggle = '<M-CR>',
|
||||
},
|
||||
enabled = false,
|
||||
},
|
||||
suggestion = {
|
||||
enabled = false,
|
||||
},
|
||||
completion = {
|
||||
documentation = {
|
||||
auto_show = true,
|
||||
},
|
||||
list = {
|
||||
selection = {
|
||||
preselect = false,
|
||||
auto_insert = true,
|
||||
},
|
||||
},
|
||||
accept = {
|
||||
auto_brackets = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
filetypes = {
|
||||
go = true,
|
||||
lua = true,
|
||||
php = true,
|
||||
python = true,
|
||||
ruby = true,
|
||||
sh = true,
|
||||
bash = true,
|
||||
javascript = true,
|
||||
puppet = true,
|
||||
yaml = true,
|
||||
markdown = true,
|
||||
['*'] = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -61,14 +24,17 @@ return {
|
|||
chat = { adapter = 'copilot' },
|
||||
inline = { adapter = 'copilot' },
|
||||
},
|
||||
adapters = {
|
||||
ollama = function()
|
||||
return require('codecompanion.adapters').extend('ollama', {
|
||||
schema = {
|
||||
model = { default = 'qwen2.5-coder:1.5b' },
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<leader>ac',
|
||||
'<cmd>CodeCompanionChat Toggle<CR>',
|
||||
noremap = true,
|
||||
desc = 'Copilot chat toggle',
|
||||
},
|
||||
{
|
||||
'<leader>as',
|
||||
'<cmd>CodeCompanionChat Add<CR>',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue