Yeet llm
This commit is contained in:
parent
61f3b45c0b
commit
41ddadca83
2 changed files with 0 additions and 67 deletions
|
@ -81,17 +81,4 @@ vim.keymap.set('n', '<leader><tab>d', '<cmd>tabclose<cr>', { desc = 'Close Tab'
|
|||
vim.keymap.set('n', '<leader><tab>]', '<cmd>tabnext<cr>', { desc = 'Next Tab' })
|
||||
vim.keymap.set('n', '<leader><tab>[', '<cmd>tabprevious<cr>', { desc = 'Previous Tab' })
|
||||
|
||||
-- Toggle LLM Suggestions
|
||||
vim.keymap.set('n', '<leader>tt', function()
|
||||
local cp = require 'copilot.suggestion'
|
||||
|
||||
cp.toggle_auto_trigger()
|
||||
|
||||
if vim.b.copilot_suggestion_auto_trigger then
|
||||
vim.notify 'Suggestions Enabled'
|
||||
else
|
||||
vim.notify 'Suggestions Disabled'
|
||||
end
|
||||
end, { desc = '[T]oggle LLM Suggestion Auto-[T]rigger' })
|
||||
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
|
|
@ -1,54 +0,0 @@
|
|||
-- Copilot LLM Completions
|
||||
-- https://github.com/jacobdot/copilot.nvim
|
||||
|
||||
-- Config as of 2024-08-04
|
||||
return {
|
||||
'zbirenbaum/copilot.lua',
|
||||
cmd = 'Copilot',
|
||||
event = 'InsertEnter',
|
||||
config = function()
|
||||
require('copilot').setup {
|
||||
panel = {
|
||||
enabled = false,
|
||||
auto_refresh = false,
|
||||
keymap = {
|
||||
jump_prev = false, -- Originally '[['
|
||||
jump_next = false, -- Originally ']]'
|
||||
accept = '<CR>',
|
||||
refresh = false, -- Originally 'gr'
|
||||
open = false, --Originally '<M-CR>'
|
||||
},
|
||||
layout = {
|
||||
position = 'right', -- | top | left | right
|
||||
ratio = 0.4,
|
||||
},
|
||||
},
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
auto_trigger = false,
|
||||
debounce = 75,
|
||||
keymap = {
|
||||
accept = '<M-y>',
|
||||
accept_word = '<M-h>',
|
||||
accept_line = '<M-l>',
|
||||
next = '<M-j>',
|
||||
prev = '<M-k>',
|
||||
dismiss = false,
|
||||
},
|
||||
},
|
||||
filetypes = {
|
||||
yaml = false,
|
||||
markdown = false,
|
||||
help = false,
|
||||
gitcommit = false,
|
||||
gitrebase = false,
|
||||
hgcommit = false,
|
||||
svn = false,
|
||||
cvs = false,
|
||||
['.'] = false,
|
||||
},
|
||||
copilot_node_command = 'node', -- Node.js version must be > 18.x
|
||||
server_opts_overrides = {},
|
||||
}
|
||||
end,
|
||||
}
|
Loading…
Reference in a new issue