Skip to content

Commit

Permalink
fix(ui): proper usage of vim.fn.confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
boltlessengineer committed Jul 13, 2024
1 parent 7f74e12 commit 143a89d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rocks_treesitter/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ local function prompt_auto_install(rocks)
-- TODO: Enable check when we have tagged releases
-- if #rocks == 1 then
local rock = rocks[1]
local choice = vim.fn.confirm("Install " .. rock.name .. "?", "y/n", "n", "Question")
local choice = vim.fn.confirm("Install " .. rock.name .. "?", "&Yes\n&No", 2, "Question")
install_rock_or_mark_declined(choice == 1 and rock.version or nil)
-- elseif #rocks > 1 then
-- local choices = vim.iter(rocks)
Expand Down

0 comments on commit 143a89d

Please sign in to comment.