Skip to content

Commit 35fa511

Browse files
sbulavzbirenbaum
andauthored
Doc: add configuration documentation (zbirenbaum#18)
* doc: add configuration documentation * doc: fix code block * Minor changes to phrasing Co-authored-by: Zach Birenbaum <zacharyobirenbaum@gmail.com>
1 parent 8ab1f54 commit 35fa511

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,44 @@ The following is the default configuration:
6767

6868
```lua
6969
{
70-
plugin_manager_path = vim.fn.stdpath("data") .. "/site/pack/packer", -- Installation Path of packer, change to the plugin manager installation path of your choice
70+
plugin_manager_path = vim.fn.stdpath("data") .. "/site/pack/packer",
71+
server_opts_overrides = {},
72+
ft_disable = {}
73+
}
74+
```
75+
76+
##### plugin_manager_path
77+
78+
This is installation path of Packer, change this to the plugin manager installation path of your choice
79+
80+
Example:
81+
82+
```lua
83+
require("copilot").setup {
84+
plugin_manager_path = vim.fn.stdpath("data") .. "/site/pack/packer",
85+
}
86+
```
87+
88+
##### server_opts_overrides
89+
90+
Override copilot lsp client settings. See `:h vim.lsp.start_client` for list of options.
91+
92+
Example:
93+
94+
```lua
95+
require("copilot").setup {
96+
server_opts_overrides = { trace = "verbose", name = "AI" },
97+
}
98+
```
99+
100+
##### ft_disable
101+
102+
Prevents copilot from attaching to buffers with specific filetypes.
103+
104+
Example:
105+
106+
```lua
107+
require("copilot").setup {
108+
ft_disable = { "markdown", "terraform" },
71109
}
72110
```

0 commit comments

Comments
 (0)