This commit is contained in:
Justin M. Keyes
2026-03-28 09:59:54 -04:00
committed by GitHub
parent 7bf83cc2a6
commit 64d55b74d8
21 changed files with 152 additions and 198 deletions

View File

@@ -23,16 +23,13 @@ local M = {}
---
--- ```lua
--- vim.ui.select({ 'tabs', 'spaces' }, {
--- prompt = 'Select tabs or spaces:',
--- format_item = function(item)
--- return "I'd like to choose " .. item
--- end,
--- prompt = 'Select tabs or spaces:',
--- format_item = function(item)
--- return ('I choose %s!'):format(item)
--- end,
--- }, function(choice)
--- if choice == 'spaces' then
--- vim.o.expandtab = true
--- else
--- vim.o.expandtab = false
--- end
--- vim.o.expandtab = choice == 'spaces'
--- vim.print(('Selected "%s" => expandtab=%s'):format(choice, vim.o.expandtab))
--- end)
--- ```
---