aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/after/plugin/copilot.lua
blob: 7ed65292478608ca6564d1f1f3a1cba501931458 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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,
}