From 0e61350c91abbeb446d238e8ca65e2cbcf5bd1b8 Mon Sep 17 00:00:00 2001 From: Peter Tillemans Date: Sat, 16 Mar 2024 02:01:13 +0100 Subject: [PATCH] use zbirenbaum copilot cmp integration --- init.lua | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 58b5916..ce2dd25 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] -- 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. -- -- 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 = {}, pyright = {}, rust_analyzer = {}, @@ -704,7 +716,12 @@ require('lazy').setup({ -- 'rafamadriz/friendly-snippets', -- add copilot support - 'hrsh7th/cmp-copilot', + { + 'zbirenbaum/copilot-cmp', + config = function() + require('copilot_cmp').setup() + end, + }, }, config = function() -- See `:help cmp`