From 0d613f6adf624f969ac656e3f97459a2d528934d Mon Sep 17 00:00:00 2001 From: Luca Bilke <luca@bil.ke> Date: Mon, 7 Oct 2024 11:34:00 +0200 Subject: [PATCH] nvim: enable copilot for yaml, disable for no ft --- common/.config/nvim/lua/plugins/editor.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/.config/nvim/lua/plugins/editor.lua b/common/.config/nvim/lua/plugins/editor.lua index c1b35b99..a0e55377 100644 --- a/common/.config/nvim/lua/plugins/editor.lua +++ b/common/.config/nvim/lua/plugins/editor.lua @@ -4,6 +4,10 @@ return { { "zbirenbaum/copilot.lua", optional = true, + filetypes = { + yaml = true, + [""] = false, + }, keys = { { "<leader>a", "", desc = "+ai", mode = { "n" } }, { "<leader>at", "<CMD>Copilot detach<CR>", desc = "Detach (Copilot)" },