added copilot

This commit is contained in:
read-docs 2025-12-27 13:01:30 +01:00
parent 95e7162ead
commit 864912a6c2
7 changed files with 52 additions and 10 deletions

View File

@ -878,8 +878,14 @@ require('lazy').setup({
},
sources = {
default = { 'lsp', 'path', 'snippets', 'lazydev' },
default = { 'lsp', 'path', 'snippets', 'lazydev', 'copilot' },
providers = {
copilot = {
name = 'copilot',
module = 'blink-cmp-copilot',
score_offset = 100,
async = true,
},
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
},
},

View File

@ -0,0 +1,3 @@
return {
'giuxtaposition/blink-cmp-copilot',
}

View File

@ -0,0 +1,23 @@
return {
'zbirenbaum/copilot.lua',
requires = {
'giuxtaposition/blink-cmp-copilot',
init = function()
vim.g.copilot_nes_debounce = 500
end,
},
cmd = 'Copilot',
event = 'InsertEnter',
config = function()
require('copilot').setup {
nes = {
enabled = true,
keymap = {
accept_and_goto = '<leader>p',
accept = false,
dismiss = '<Esc>',
},
},
}
end,
}

View File

@ -1,9 +0,0 @@
return {
'MeanderingProgrammer/render-markdown.nvim',
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.nvim' }, -- if you use the mini.nvim suite
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.icons' }, -- if you use standalone mini plugins
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons
---@module 'render-markdown'
---@type render.md.UserConfig
opts = {},
}

View File

@ -0,0 +1,7 @@
return {
'OXY2DEV/markview.nvim',
lazy = false,
-- Completion for `blink.cmp`
dependencies = { 'saghen/blink.cmp' },
}

View File

@ -0,0 +1,6 @@
return {
'alex-popov-tech/store.nvim',
dependencies = { 'OXY2DEV/markview.nvim' },
opts = {},
cmd = 'Store',
}

View File

@ -0,0 +1,6 @@
return {
'chomosuke/typst-preview.nvim',
lazy = false, -- or ft = 'typst'
version = '1.*',
opts = {}, -- lazy.nvim will implicitly calls `setup {}`
}