From 41ddadca831c393f8969d81d69ea43484064b411 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Fri, 8 Nov 2024 00:28:46 +0100 Subject: [PATCH] Yeet llm --- lua/keymaps.lua | 13 ---------- lua/plugins/copilot.lua | 54 ----------------------------------------- 2 files changed, 67 deletions(-) delete mode 100644 lua/plugins/copilot.lua diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 8074291..da992a2 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -81,17 +81,4 @@ vim.keymap.set('n', 'd', 'tabclose', { desc = 'Close Tab' vim.keymap.set('n', ']', 'tabnext', { desc = 'Next Tab' }) vim.keymap.set('n', '[', 'tabprevious', { desc = 'Previous Tab' }) --- Toggle LLM Suggestions -vim.keymap.set('n', '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 diff --git a/lua/plugins/copilot.lua b/lua/plugins/copilot.lua deleted file mode 100644 index 446c719..0000000 --- a/lua/plugins/copilot.lua +++ /dev/null @@ -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 = '', - refresh = false, -- Originally 'gr' - open = false, --Originally '' - }, - layout = { - position = 'right', -- | top | left | right - ratio = 0.4, - }, - }, - suggestion = { - enabled = true, - auto_trigger = false, - debounce = 75, - keymap = { - accept = '', - accept_word = '', - accept_line = '', - next = '', - prev = '', - 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, -}