From a08734916cd129744b35f8adb6930780dd1d22e9 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 20 Dec 2024 14:28:27 +0100 Subject: [PATCH] feat(nvim): add copilot --- neovim/default.nix | 4 ++++ neovim/nvim-cmp.lua | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/neovim/default.nix b/neovim/default.nix index 20e9a97..1a79877 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -85,6 +85,10 @@ lsp_lines-nvim lsp-inlayhints-nvim + # Copilot + copilot-lua + copilot-cmp + # debugging nvim-dap nvim-dap-ui diff --git a/neovim/nvim-cmp.lua b/neovim/nvim-cmp.lua index 098ce04..eddcdef 100644 --- a/neovim/nvim-cmp.lua +++ b/neovim/nvim-cmp.lua @@ -7,6 +7,11 @@ end local cmp = require("cmp") local luasnip = require("luasnip") +local copilot_lua = require("copilot") +local copilot_cmp = require("copilot_cmp") + +copilot_lua.setup({}) +copilot_cmp.setup({}) cmp.setup({ snippet = { @@ -15,6 +20,7 @@ cmp.setup({ end }, sources = cmp.config.sources({ + { name = "copilot" }, { name = "nvim_lsp" }, { name = "nvim_lsp_signature_help" }, { name = "luasnip" },