diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/.config/nvim/lua/eugenetriguba/plugins/blink.lua | 9 | ||||
| -rw-r--r-- | nvim/.config/nvim/lua/eugenetriguba/plugins/copilot.lua | 30 |
2 files changed, 38 insertions, 1 deletions
diff --git a/nvim/.config/nvim/lua/eugenetriguba/plugins/blink.lua b/nvim/.config/nvim/lua/eugenetriguba/plugins/blink.lua index f881d2c..a4fd085 100644 --- a/nvim/.config/nvim/lua/eugenetriguba/plugins/blink.lua +++ b/nvim/.config/nvim/lua/eugenetriguba/plugins/blink.lua @@ -25,6 +25,7 @@ return { opts = {}, }, 'https://github.com/folke/lazydev.nvim', + 'https://github.com/giuxtaposition/blink-cmp-copilot', }, --- @module 'blink.cmp' --- @type blink.cmp.Config @@ -42,9 +43,15 @@ return { }, sources = { - default = { 'lsp', 'path', 'snippets', 'lazydev' }, + default = { 'lsp', 'path', 'snippets', 'lazydev', 'copilot' }, 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/nvim/.config/nvim/lua/eugenetriguba/plugins/copilot.lua b/nvim/.config/nvim/lua/eugenetriguba/plugins/copilot.lua new file mode 100644 index 0000000..3f24765 --- /dev/null +++ b/nvim/.config/nvim/lua/eugenetriguba/plugins/copilot.lua @@ -0,0 +1,30 @@ +return { + { + 'https://github.com/zbirenbaum/copilot.lua', + cmd = 'Copilot', + event = 'InsertEnter', + config = function() + require('copilot').setup { + suggestion = { enabled = false }, + panel = { enabled = false }, + } + end, + }, + { + 'https://github.com/CopilotC-Nvim/CopilotChat.nvim', + event = 'VeryLazy', + dependencies = { + { 'https://github.com/zbirenbaum/copilot.lua' }, + { 'https://github.com/nvim-lua/plenary.nvim', branch = 'master' }, + }, + build = 'make tiktoken', + config = function() + require('CopilotChat').setup { + model = 'claude-sonnet-4', + vim.keymap.set('n', '<leader>tc', function() + vim.cmd 'CopilotChatToggle' + end, { desc = '[T]oggle [C]opilot Chat' }), + } + end, + }, +} |