Official Jule extension for Neovim.
- Syntax highlighting
- Code formatting (julefmt)
Add the following line to your Vim configuration file:
Plug 'julelang/jule.nvim'
Then run the following command:
:PlugInstall
require('jule').setup {
format_on_save = true,
format_command = "julefmt -w %" -- default, optional
}
- Make sure all the requirements are installed and are available in your
PATH
variable - Clone the repository and navigate to its directory:
$ git clone [email protected]:julelang/jule.nvim.git
$ cd jule.nvim
- Create a test Jule module:
$ julec mod init
$ printf "fn main() {\n println(\"Hello world\")\n}" > main.jule
- Get the path to the plugin:
$ pwd
- Open Neovim:
$ nvim main.jule
- Set the runtime path and filetype:
:set runtimepath+=/path/to/jule.nvim
:set filetype=jule
- Source the plugin:
:source /path/to/jule.nvim/lua/jule/init.lua
- Configure the plugin:
:lua require('jule').setup { format_on_save = true }
- Done!
See the Julenour Code of Conduct
The extension is distributed under the terms of the BSD 3-Clause license.
See License Details