dotfiles/.config/nvim/lua/plugins/copilot.lua

16 lines
435 B
Lua
Raw Normal View History

2022-11-22 09:56:09 +01:00
local map = function(type, key, value, opts)
local options = { noremap = true }
if opts then
options = vim.tbl_extend("force", options, opts)
end
vim.api.nvim_set_keymap(type, key, value, options)
end
map("i", "<C-J>", [[copilot#Accept("<CR>")]], { noremap = true, silent = true, expr = true })
2022-04-19 09:27:30 +02:00
vim.g.copilot_no_tab_map = true
vim.g.copilot_assume_mapped = true
vim.g.copilot_tab_fallback = ""
2022-10-07 10:29:23 +02:00
vim.g.copilot_no_tab_map = true