Skip to content

Commit 0dfa2b5

Browse files
committed
README contents fix
1 parent 9bfb86e commit 0dfa2b5

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ You have to run the `require("copilot").setup(options)` function in order to sta
2727
Because the copilot server takes some time to start up, I HIGHLY recommend that you load copilot after startup. This can be done in multiple ways, the best one will depend on your existing config and the speed of your machine:
2828

2929
1. On 'VimEnter' + Defer: (My preferred method, works well with fast configs)
30-
```
31-
use{
30+
```lua
31+
use {
3232
"zbirenbaum/copilot.lua",
3333
event = {"VimEnter"},
3434
config = function()
@@ -39,25 +39,25 @@ use{
3939
}
4040
```
4141
2. Load After Statusline + defer: (If option (1) causes statusline to flicker, try this)
42-
```
43-
["zbirenbaum/copilot.lua"] = {
42+
```lua
43+
use {
4444
"zbirenbaum/copilot.lua",
4545
after = 'feline.nvim', --whichever statusline plugin you use here
4646
config = function ()
4747
vim.defer_fn(function() require("copilot").setup() end, 100)
4848
end,
49-
},
49+
}
5050
```
5151
3. On 'InsertEnter': (The safest way to avoid statup lag. Note: Your copilot completions may take a moment to start showing up)
5252

53-
```
53+
```lua
5454
use {
5555
"zbirenbaum/copilot.lua",
5656
event = "InsertEnter",
5757
config = function ()
5858
vim.schedule(function() require("copilot").setup() end)
5959
end,
60-
},
60+
}
6161
```
6262

6363

@@ -93,7 +93,7 @@ Example:
9393

9494
```lua
9595
require("copilot").setup {
96-
server_opts_overrides = { trace = "verbose", name = "AI" },
96+
server_opts_overrides = { trace = "verbose", name = "AI" },
9797
}
9898
```
9999

@@ -105,6 +105,6 @@ Example:
105105

106106
```lua
107107
require("copilot").setup {
108-
ft_disable = { "markdown", "terraform" },
108+
ft_disable = { "markdown", "terraform" },
109109
}
110110
```

0 commit comments

Comments
 (0)