Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 1.23 KB

README.md

File metadata and controls

35 lines (31 loc) · 1.23 KB

dodona.nvim

Installation

packer installation:

	use({
		"xerbalind/dodona.nvim",
		requires = {
			"rcarriga/nvim-notify",
			"nvim-telescope/telescope.nvim",
			"nvim-lua/plenary.nvim",
		},
	})

Setup

	require("dodona").setup({
		base_url = "https://dodona.be",
	})

Every code file you want to perform commands on (see next section) needs the corresponding exercise url as the first line. Something like https://dodona.be/nl/courses/3363/series/36080/activities/1144070225/ (just copy from browser), this url can be commented.

Optional config option: go_cmd = "<COMMAND>". Executes the command with the url when executing DodonaGo. For example if <command> is firefox: firefox https://.... Default is gio open

Commands

  • DodonaSubmit : Evaluate current buffer by sending code to dodona
    (Make sure first line is full url to activity page (can be commented))
  • DodonaInitActivities : create all exercise files in current dir. Navigation to the right serie is done with telescope.
  • DodonaDownload: download all linked files from exercise description (url needed as first line).
  • DodonaGo: go to exercise page (url needed as first line).
  • DodonaSetToken: set your token to a new value.