use zbirenbaum copilot cmp integration
This commit is contained in:
parent
d34281a630
commit
0e61350c91
1 changed files with 20 additions and 3 deletions
23
init.lua
23
init.lua
|
@ -91,7 +91,7 @@ vim.g.mapleader = ' '
|
||||||
vim.g.maplocalleader = ' '
|
vim.g.maplocalleader = ' '
|
||||||
|
|
||||||
-- Set to true if you have a Nerd Font installed
|
-- Set to true if you have a Nerd Font installed
|
||||||
vim.g.have_nerd_font = false
|
vim.g.have_nerd_font = true
|
||||||
|
|
||||||
-- [[ Setting options ]]
|
-- [[ Setting options ]]
|
||||||
-- See `:help vim.opt`
|
-- See `:help vim.opt`
|
||||||
|
@ -291,6 +291,18 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
'NeogitOrg/neogit',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim', -- required
|
||||||
|
'sindrets/diffview.nvim', -- optional - Diff integration
|
||||||
|
|
||||||
|
-- Only one of these is needed, not both.
|
||||||
|
'nvim-telescope/telescope.nvim', -- optional
|
||||||
|
},
|
||||||
|
config = true,
|
||||||
|
},
|
||||||
|
|
||||||
-- NOTE: Plugins can also be configured to run lua code when they are loaded.
|
-- NOTE: Plugins can also be configured to run lua code when they are loaded.
|
||||||
--
|
--
|
||||||
-- This is often very useful to both group configuration, as well as handle
|
-- This is often very useful to both group configuration, as well as handle
|
||||||
|
@ -590,7 +602,7 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
html = {},
|
html = { filetypes = { 'html', 'twig', 'hbs' } },
|
||||||
htmx = {},
|
htmx = {},
|
||||||
pyright = {},
|
pyright = {},
|
||||||
rust_analyzer = {},
|
rust_analyzer = {},
|
||||||
|
@ -704,7 +716,12 @@ require('lazy').setup({
|
||||||
-- 'rafamadriz/friendly-snippets',
|
-- 'rafamadriz/friendly-snippets',
|
||||||
|
|
||||||
-- add copilot support
|
-- add copilot support
|
||||||
'hrsh7th/cmp-copilot',
|
{
|
||||||
|
'zbirenbaum/copilot-cmp',
|
||||||
|
config = function()
|
||||||
|
require('copilot_cmp').setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- See `:help cmp`
|
-- See `:help cmp`
|
||||||
|
|
Loading…
Reference in a new issue