aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/after/plugin/copilot.lua
blob: f993a9384bea5abea60aa394fd89f4a3a9a1ff85 (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"] = true,
    ["javascript"] = false,
    ["typescript"] = false,
    ["lua"] = true,
    ["rust"] = true,
    ["c"] = true,
    ["c#"] = true,
    ["c++"] = true,
    ["go"] = true,
    ["python"] = true,
}