dotfiles/.config/nvim/lua/plugins/copilot.lua

30 lines
719 B
Lua
Raw Normal View History

2023-09-18 07:20:52 +01:00
require('copilot').setup({
2024-03-17 12:32:47 +00:00
suggestion = {
enabled = true,
auto_trigger = true,
2024-03-17 12:32:47 +00:00
debounce = 75,
keymap = {
accept = "<C-h>",
accept_word = false,
accept_line = false,
--Option key + ] or [
next = "<M-]>",
prev = "<M-[>",
dismiss = "<C-]>",
},
2023-09-18 07:20:52 +01:00
},
2024-03-17 12:32:47 +00:00
filetypes = {
yaml = false,
markdown = true,
help = false,
gitcommit = false,
gitrebase = false,
hgcommit = false,
svn = false,
cvs = false,
["."] = false,
},
copilot_node_command = 'node', -- Node.js version must be > 16.x
server_opts_overrides = {},
2023-09-18 07:20:52 +01:00
})