Skip to content

Commit 152ff92

Browse files
authored
docs: fix typo in prompts.md. (#869)
1 parent 4a6567b commit 152ff92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/extending/prompts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ To make this example complete, we can leverage a pre-hook to create a new buffer
7878
pre_hook = function()
7979
local bufnr = vim.api.nvim_create_buf(true, false)
8080
vim.api.nvim_set_current_buf(bufnr)
81-
vim.api.nvim_set_option_value("filetype", "html", { buf = buf } )
81+
vim.api.nvim_set_option_value("filetype", "html", { buf = bufnr } )
8282
return bufnr
8383
end
8484
}

0 commit comments

Comments
 (0)