add copilot

This commit is contained in:
nikkitschierske 2023-12-15 12:44:46 +01:00
parent 42834b361b
commit 250a3fb84c
No known key found for this signature in database
2 changed files with 38 additions and 0 deletions

View file

@ -69,6 +69,9 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
-- NOTE: First, some plugins that don't require any configuration
-- REMOVE
"github/copilot.vim",
-- Git related plugins
'tpope/vim-fugitive',
'tpope/vim-rhubarb',
@ -309,6 +312,13 @@ vim.o.termguicolors = true
-- [[ Basic Keymaps ]]
-- REMOVE
vim.keymap.set('i', '<C-J>', 'copilot#Accept("<CR>")', {
expr = true,
replace_keycodes = false
})
vim.g.copilot_no_tab_map = true
-- Keymaps for better default experience
-- See `:help vim.keymap.set()`
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })