Skip to content

Commit

Permalink
Add descriptions to BidiEnable and BidiDisable
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Cook committed Mar 31, 2023
1 parent 0a052d2 commit 8cae70b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/bidi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,17 @@ function M.setup(opts)
-- Enable Bidi-Mode in current buffer
vim.api.nvim_create_user_command('BidiEnable', function(opts)
local base_dir = opts.fargs[1] or M.options.default_base_direction
end, { nargs = '?' })
M.buf_enable_bidi(0, base_dir)
end,
{ nargs = '?', desc = 'Enable Bidi-Mode in the current buffer' }
)

-- Disable Bidi-Mode in current buffer
vim.api.nvim_create_user_command('BidiDisable', function()
end, {})
M.buf_disable_bidi(0)
end,
{ desc = 'Disable Bidi-Mode in the current buffer' }
)
end
end

Expand Down

0 comments on commit 8cae70b

Please sign in to comment.