add github copilot settings
This commit is contained in:
parent
46df4817af
commit
8317ff3ef0
|
@ -38,4 +38,12 @@ return {
|
||||||
-- setting a mapping to false will disable it
|
-- setting a mapping to false will disable it
|
||||||
-- ["<esc>"] = false,
|
-- ["<esc>"] = false,
|
||||||
},
|
},
|
||||||
|
v = {
|
||||||
|
["<S-up>"] = { ":m '<-2<CR>gv=gv'" },
|
||||||
|
["<S-down>"] = { ":m '>+1<CR>gv=gv'" },
|
||||||
|
},
|
||||||
|
i = {
|
||||||
|
-- ["<C-f>"] = { "copilot#Accept(\"\\<CR>\")", desc = "copilot expand", silent = true, expr = true, script = true }
|
||||||
|
["<C-f>"] = { "copilot#Accept(\"\\<CR>\")", desc = "copilot expand", silent = true, expr = true, replace_keycodes = false }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,4 +9,12 @@ return {
|
||||||
-- require("lsp_signature").setup()
|
-- require("lsp_signature").setup()
|
||||||
-- end,
|
-- end,
|
||||||
-- },
|
-- },
|
||||||
|
{
|
||||||
|
"github/copilot.vim",
|
||||||
|
cmd = "Copilot",
|
||||||
|
event = "BufRead",
|
||||||
|
init = function()
|
||||||
|
vim.g.copilot_no_tab_map = true
|
||||||
|
end
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue