From cf1e747eb42ea7cb8a33236c9962c320d3894955 Mon Sep 17 00:00:00 2001 From: Jim Richter Date: Fri, 26 Nov 2021 16:41:10 +0100 Subject: [PATCH] feat: add gh copilot --- configs/nvim/lua/cmp-conf.lua | 3 +++ configs/nvim/lua/keymappings.lua | 3 +++ configs/nvim/lua/plugins.lua | 1 + 3 files changed, 7 insertions(+) diff --git a/configs/nvim/lua/cmp-conf.lua b/configs/nvim/lua/cmp-conf.lua index a15ea71..914eb95 100644 --- a/configs/nvim/lua/cmp-conf.lua +++ b/configs/nvim/lua/cmp-conf.lua @@ -19,6 +19,9 @@ cmp.setup { latex_symbols = "[Latex]", })}), }, + experimental = { + ghost_text = true, + }, completion = { completeopt = "menu,menuone", }, diff --git a/configs/nvim/lua/keymappings.lua b/configs/nvim/lua/keymappings.lua index 6614cc2..b40f8da 100644 --- a/configs/nvim/lua/keymappings.lua +++ b/configs/nvim/lua/keymappings.lua @@ -38,6 +38,9 @@ map("n", "", "move +1", options) map("n", "", "move -2", options) map("i", "", "move +1", options) map("i", "", "move -2", options) +map("v", "", ":m '>+1gv=gv", options) +map("v", "", ":m '<-2gv=gv", options) + -- Faster git merge map("n", "gd", ":Gvdiffsplit!", options) diff --git a/configs/nvim/lua/plugins.lua b/configs/nvim/lua/plugins.lua index 71aa8ae..e7925eb 100644 --- a/configs/nvim/lua/plugins.lua +++ b/configs/nvim/lua/plugins.lua @@ -59,6 +59,7 @@ return require("packer").startup(function() -- Syntax / Autocomplete use "neovim/nvim-lspconfig" + use "github/copilot.vim" use "hrsh7th/nvim-cmp" use "hrsh7th/cmp-nvim-lsp" use "hrsh7th/cmp-path"