From b0ed665496a280987b2406c9c497446a5f522c29 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 9 Apr 2023 09:06:18 +0100 Subject: Add Github Copilot configuration I have taken the plunge! --- nvim/after/plugin/copilot.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nvim/after/plugin/copilot.lua (limited to 'nvim') diff --git a/nvim/after/plugin/copilot.lua b/nvim/after/plugin/copilot.lua new file mode 100644 index 0000000..f993a93 --- /dev/null +++ b/nvim/after/plugin/copilot.lua @@ -0,0 +1,17 @@ +vim.g.copilot_no_tab_map = true +vim.api.nvim_set_keymap("i", "", 'copilot#Accept("")', { silent = true, expr = true }) +-- not working vim.g.copilot_assume_mapped = true + +vim.g.copilot_filetypes = { + ["*"] = false, + ["markdown"] = true, + ["javascript"] = false, + ["typescript"] = false, + ["lua"] = true, + ["rust"] = true, + ["c"] = true, + ["c#"] = true, + ["c++"] = true, + ["go"] = true, + ["python"] = true, +} -- cgit v1.2.3