Add Copilot plugin.

This commit is contained in:
tronglt 2023-10-29 08:25:54 +07:00
parent 9301595e2b
commit bb1316e1fb
2 changed files with 9 additions and 4 deletions

View File

@ -134,10 +134,7 @@ require('lazy').setup({
main = "ibl",
-- Enable `lukas-reineke/indent-blankline.nvim`
-- See `:help indent_blankline.txt`
opts = {
char = '',
show_trailing_blankline_indent = false,
},
opts = {},
},
-- "gc" to comment visual regions/lines
@ -386,6 +383,11 @@ vim.keymap.set('n', 'N', 'Nzzzv')
-- Real paste
vim.keymap.set('x', '<leader>p', '"_dP')
-- Copilot configs
vim.g.copilot_assume_mapped = true
vim.g.copilot_no_tab_map = true
vim.api.nvim_set_keymap("i", "<C-J>", 'copilot#Accept("<CR>")', { silent = true, expr = true })
-- LSP settings.
-- This function gets run when an LSP connects to a particular buffer.
local on_attach = function(_, bufnr)

View File

@ -0,0 +1,3 @@
return {
"github/copilot.vim"
}