summaryrefslogtreecommitdiffstats
path: root/nvim-primeagen/after/plugin/copilot.lua
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-08-13 08:44:49 +0100
committerMatthew Lemon <y@yulqen.org>2023-08-13 08:44:49 +0100
commitc1d6bc6b4fd5208c7f3df0694f7aab501943981b (patch)
treeac34ead54ba6682a5c2e0d1a1f569346c76e9c90 /nvim-primeagen/after/plugin/copilot.lua
parent39c92fea8b9e96b2756d94b285dae8cfb015d68f (diff)
Adds primeagen neovim configuration
Diffstat (limited to '')
-rw-r--r--nvim-primeagen/after/plugin/copilot.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/nvim-primeagen/after/plugin/copilot.lua b/nvim-primeagen/after/plugin/copilot.lua
new file mode 100644
index 0000000..7ed6529
--- /dev/null
+++ b/nvim-primeagen/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"] = false,
+ ["javascript"] = false,
+ ["typescript"] = false,
+ ["lua"] = true,
+ ["rust"] = true,
+ ["c"] = true,
+ ["c#"] = true,
+ ["c++"] = true,
+ ["go"] = true,
+ ["python"] = true,
+}