aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/ui.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-12-02 16:45:39 +0100
committerGitHub <noreply@github.com>2022-12-02 16:45:39 +0100
commit07e6296520fc83b1fdb287b5173494cdd0e9136f (patch)
tree9844003e550f161a5d563a726fc759fa1a84d22a /runtime/lua/vim/ui.lua
parent731432342058c1c4340fc3cc4782b5fcd4a756a0 (diff)
parente40df8b1bc6a7832c7707696b374b19642dfd596 (diff)
downloadrneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.tar.gz
rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.tar.bz2
rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.zip
Merge pull request #21154 from clason/vimdoc-injections
feat(help): highlighted codeblocks
Diffstat (limited to 'runtime/lua/vim/ui.lua')
-rw-r--r--runtime/lua/vim/ui.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/ui.lua b/runtime/lua/vim/ui.lua
index 97dccd83ab..8f5be15221 100644
--- a/runtime/lua/vim/ui.lua
+++ b/runtime/lua/vim/ui.lua
@@ -21,7 +21,7 @@ local M = {}
---
---
--- Example:
---- <pre>
+--- <pre>lua
--- vim.ui.select({ 'tabs', 'spaces' }, {
--- prompt = 'Select tabs or spaces:',
--- format_item = function(item)
@@ -78,7 +78,7 @@ end
--- `nil` if the user aborted the dialog.
---
--- Example:
---- <pre>
+--- <pre>lua
--- vim.ui.input({ prompt = 'Enter value for shiftwidth: ' }, function(input)
--- vim.o.shiftwidth = tonumber(input)
--- end)