feat: add gh copilot

This commit is contained in:
max_richter 2021-11-26 16:41:10 +01:00
parent 3e07ffe2ac
commit cf1e747eb4
3 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,9 @@ cmp.setup {
latex_symbols = "[Latex]",
})}),
},
experimental = {
ghost_text = true,
},
completion = {
completeopt = "menu,menuone",
},

View File

@ -38,6 +38,9 @@ map("n", "<A-j>", "<cmd>move +1<CR>", options)
map("n", "<A-k>", "<cmd>move -2<CR>", options)
map("i", "<A-j>", "<cmd>move +1<CR>", options)
map("i", "<A-k>", "<cmd>move -2<CR>", options)
map("v", "<A-j>", ":m '>+1<CR>gv=gv", options)
map("v", "<A-k>", ":m '<-2<CR>gv=gv", options)
-- Faster git merge
map("n", "<Leader>gd", ":Gvdiffsplit!<CR>", options)

View File

@ -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"