diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 71044ae..c3993be 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -217,4 +217,12 @@ return require('packer').startup(function() config = function() require("plugins/zenbones") end, } + -- copilot + use({ + "github/copilot.vim", + config = function() + require("plugins/copilot") + end, + }) + end) diff --git a/.config/nvim/lua/plugins/copilot.lua b/.config/nvim/lua/plugins/copilot.lua new file mode 100644 index 0000000..de59b37 --- /dev/null +++ b/.config/nvim/lua/plugins/copilot.lua @@ -0,0 +1,6 @@ +local map = require("dln.utils").map +map("i", "", [[copilot#Accept("\")]], { noremap = true, silent = true, expr = true, script = true }) + +vim.g.copilot_no_tab_map = true +vim.g.copilot_assume_mapped = true +vim.g.copilot_tab_fallback = ""