From 62bb0bf7398452f912274cdc962d5d57c07ad42a Mon Sep 17 00:00:00 2001 From: Sergey Bulavintsev Date: Wed, 13 Apr 2022 14:06:07 +0300 Subject: [PATCH 1/3] doc: add configuration documentation --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d90b2d10..4b1e116d 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,37 @@ The following is the default configuration: ```lua { - plugin_manager_path = vim.fn.stdpath("data") .. "/site/pack/packer", -- Installation Path of packer, change to the plugin manager installation path of your choice + plugin_manager_path = vim.fn.stdpath("data") .. "/site/pack/packer", + server_opts_overrides = {}, + ft_disable = {} +} + +##### plugin_manager_path + +This is installation path of Packer, change to the plugin manager installation path of your choice +``` + + +##### server_opts_overrides + +Override copilot lsp client settings. See `:h vim.lsp.start_client` for list of options. + +Example: + +```lua +require("copilot").setup { + server_opts_overrides = { trace = "verbose", name = "AI" }, +} +``` + +##### ft_disable + +Not attach buffers with specific filetypes to copilot lsp server. + +Example: + +```lua +require("copilot").setup { + ft_disable = { "markdown", "terraform" }, } ``` From ef11735d2bc00eca5144c57172d6f3bb7602a8e8 Mon Sep 17 00:00:00 2001 From: Sergey Bulavintsev Date: Wed, 13 Apr 2022 14:09:23 +0300 Subject: [PATCH 2/3] doc: fix code block --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b1e116d..f0a4b301 100644 --- a/README.md +++ b/README.md @@ -71,12 +71,19 @@ The following is the default configuration: server_opts_overrides = {}, ft_disable = {} } +``` ##### plugin_manager_path This is installation path of Packer, change to the plugin manager installation path of your choice -``` +Example: + +```lua +require("copilot").setup { + plugin_manager_path = vim.fn.stdpath("data") .. "/site/pack/packer", +} +``` ##### server_opts_overrides From 04ffb98441b8f077da72e0204a513f1ae92d08b1 Mon Sep 17 00:00:00 2001 From: Zach Birenbaum Date: Wed, 13 Apr 2022 11:12:25 -0400 Subject: [PATCH 3/3] Minor changes to phrasing --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f0a4b301..4c9d670b 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ The following is the default configuration: ##### plugin_manager_path -This is installation path of Packer, change to the plugin manager installation path of your choice +This is installation path of Packer, change this to the plugin manager installation path of your choice Example: @@ -99,7 +99,7 @@ require("copilot").setup { ##### ft_disable -Not attach buffers with specific filetypes to copilot lsp server. +Prevents copilot from attaching to buffers with specific filetypes. Example: