feat(nvim): add copilot

This commit is contained in:
Michael Mandl 2024-12-20 14:28:27 +01:00
parent c4ebb29d5a
commit a08734916c
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2
2 changed files with 10 additions and 0 deletions

View file

@ -85,6 +85,10 @@
lsp_lines-nvim lsp_lines-nvim
lsp-inlayhints-nvim lsp-inlayhints-nvim
# Copilot
copilot-lua
copilot-cmp
# debugging # debugging
nvim-dap nvim-dap
nvim-dap-ui nvim-dap-ui

View file

@ -7,6 +7,11 @@ end
local cmp = require("cmp") local cmp = require("cmp")
local luasnip = require("luasnip") local luasnip = require("luasnip")
local copilot_lua = require("copilot")
local copilot_cmp = require("copilot_cmp")
copilot_lua.setup({})
copilot_cmp.setup({})
cmp.setup({ cmp.setup({
snippet = { snippet = {
@ -15,6 +20,7 @@ cmp.setup({
end end
}, },
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = "copilot" },
{ name = "nvim_lsp" }, { name = "nvim_lsp" },
{ name = "nvim_lsp_signature_help" }, { name = "nvim_lsp_signature_help" },
{ name = "luasnip" }, { name = "luasnip" },