aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/lua/eugenetriguba/plugins/blink.lua17
-rw-r--r--.config/nvim/lua/eugenetriguba/plugins/copilot.lua39
2 files changed, 6 insertions, 50 deletions
diff --git a/.config/nvim/lua/eugenetriguba/plugins/blink.lua b/.config/nvim/lua/eugenetriguba/plugins/blink.lua
index 0026798..16b5310 100644
--- a/.config/nvim/lua/eugenetriguba/plugins/blink.lua
+++ b/.config/nvim/lua/eugenetriguba/plugins/blink.lua
@@ -16,10 +16,6 @@ vim.pack.add {
name = 'lazydev.nvim',
src = 'https://github.com/folke/lazydev.nvim',
},
- {
- name = 'blink-cmp-copilot',
- src = 'https://github.com/giuxtaposition/blink-cmp-copilot',
- },
}
vim.api.nvim_create_autocmd('PackChanged', {
callback = function(args)
@@ -50,15 +46,14 @@ require('blink.cmp').setup {
documentation = { auto_show = true, auto_show_delay_ms = 500 },
},
sources = {
- default = { 'lsp', 'path', 'snippets', 'lazydev', 'copilot' },
+ default = {
+ 'lsp',
+ 'path',
+ 'snippets',
+ 'lazydev',
+ },
providers = {
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
- copilot = {
- name = 'copilot',
- module = 'blink-cmp-copilot',
- score_offset = 100,
- async = true,
- },
},
},
snippets = { preset = 'luasnip' },
diff --git a/.config/nvim/lua/eugenetriguba/plugins/copilot.lua b/.config/nvim/lua/eugenetriguba/plugins/copilot.lua
deleted file mode 100644
index 30367ae..0000000
--- a/.config/nvim/lua/eugenetriguba/plugins/copilot.lua
+++ /dev/null
@@ -1,39 +0,0 @@
-vim.pack.add {
- {
- name = 'copilot.lua',
- src = 'https://github.com/zbirenbaum/copilot.lua',
- },
- {
- name = 'CopilotChat.nvim',
- src = 'https://github.com/CopilotC-Nvim/CopilotChat.nvim',
- },
- {
- name = 'plenary.nvim',
- src = 'https://github.com/nvim-lua/plenary.nvim',
- },
-}
-vim.api.nvim_create_autocmd('PackChanged', {
- callback = function(event)
- local name, kind, path = event.data.spec.name, event.data.kind, event.data.path
- if name == 'CopilotChat.nvim' and (kind == 'install' or kind == 'update') then
- vim.notify('Building CopilotChat.nvim...', vim.log.levels.INFO)
- vim.system({ 'make', 'tiktoken' }, { cwd = path, text = true }, function(result)
- if result.code == 0 then
- vim.notify('CopilotChat.nvim build successful!', vim.log.levels.INFO)
- else
- vim.notify('CopilotChat.nvim build failed: ' .. (result.stderr or ''), vim.log.levels.ERROR)
- end
- end)
- end
- end,
-})
-require('copilot').setup {
- suggestion = { enabled = false },
- panel = { enabled = false },
-}
-require('CopilotChat').setup {
- model = 'claude-sonnet-4.5',
-}
-vim.keymap.set('n', '<leader>tc', function()
- vim.cmd 'CopilotChatToggle'
-end, { desc = '[T]oggle [C]opilot Chat' })