Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/init.lua
- +++ b/init.lua
- @@ -708,7 +708,11 @@ require('lazy').setup({
- },
- 'folke/lazydev.nvim',
- {
- - 'giuxtaposition/blink-cmp-copilot',
- + 'fang2hou/blink-copilot',
- + opts = {
- + max_completions = 1,
- + max_attempts = 2,
- + },
- },
- },
- --- @module 'blink.cmp'
- @@ -760,18 +764,9 @@ require('lazy').setup({
- lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
- copilot = {
- name = 'copilot',
- - module = 'blink-cmp-copilot',
- + module = 'blink-copilot',
- score_offset = 100,
- async = true,
- - transform_items = function(_, items)
- - local CompletionItemKind = require('blink.cmp.types').CompletionItemKind
- - local kind_idx = #CompletionItemKind + 1
- - CompletionItemKind[kind_idx] = 'Copilot'
- - for _, item in ipairs(items) do
- - item.kind = kind_idx
- - end
- - return items
- - end,
- },
- },
- },
- diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua
- index 30d967f..d03f681 100644
- --- a/lua/custom/plugins/copilot.lua
- +++ b/lua/custom/plugins/copilot.lua
- @@ -1,11 +1,10 @@
- return {
- - 'zbirenbaum/copilot.lua',
- - cmd = 'Copilot',
- - event = 'InsertEnter',
- - config = function()
- - require('copilot').setup {
- - panel = { enabled = false },
- - suggestion = { enabled = false },
- - }
- + 'copilotlsp-nvim/copilot-lsp',
- + init = function()
- + vim.g.copilot_nes_debounce = 500
- + vim.lsp.enable 'copilot'
- + vim.keymap.set('n', '<tab>', function()
- + require('copilot-lsp.nes').apply_pending_nes()
- + end)
- end,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement