Skip to content

Commit 526ce15

Browse files
authored
Update getting_started.md - replace deprecated API method
1 parent 1a988a9 commit 526ce15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Once the basic language configurations have been installed, add this to your
6161
```lua
6262
local on_attach = function(client, bufnr)
6363
-- Enable completion triggered by <c-x><c-o>
64-
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
64+
vim.api.nvim_set_option_value("omnifunc", "v:lua.vim.lsp.omnifunc", { buf = bufnr })
6565

6666
local bufopts = { noremap = true, silent = true, buffer = bufnr }
6767
vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, bufopts)

0 commit comments

Comments
 (0)