aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nvim/after/plugin/copilot.lua17
1 files changed, 17 insertions, 0 deletions
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", "<C-J>", 'copilot#Accept("<CR>")', { 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,
+}