--- @type tOleoBoardConfiguration -- @field [default_keybinds] boolean whether to use the default key bindings or not. Defaults to true. --- Sets up the Oleoboard commands and keybins -- @param user_configuration tOleoBoardConfiguration the user provided configuration for the plugin local api = vim.api local fs = vim.loop local fn = vim.fs if not api.nvim_create_user_command then return end local command = api.nvim_create_user_command local configuration = require('oleoboard.configuration').configuration if configuration.default_keybinds then require('oleoboard.keybinds').bind() end -- Note Handling Commands command('OleoBoardToggle', function(options) require('oleoboard.board').toggle(options.args) end, { nargs = '?' }) command('OleoBoardMoveEntryRight', function() require('oleoboard.board').move_entry_right() end, { nargs = 0 }) command('OleoBoardMoveEntryLeft', function() require('oleoboard.board').move_entry_left() end, { nargs = 0 }) command('OleoBoardMoveColumnRight', function() require('oleoboard.board').move_column_right() end, { nargs = 0 }) command('OleoBoardMoveColumnLeft', function() require('oleoboard.board').move_column_left() end, { nargs = 0 })