Skip to content

julelang/jule.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jule for Neovim

Official Jule extension for Neovim.



Features

  • Syntax highlighting
  • Code formatting (julefmt)

Installation

Add the following line to your Vim configuration file:

Plug 'julelang/jule.nvim'

Then run the following command:

:PlugInstall

Configuration

Code formatting

require('jule').setup {
  format_on_save = true,
  format_command = "julefmt -w %" -- default, optional
}

Development

Requirements

Setup

  1. Make sure all the requirements are installed and are available in your PATH variable
  2. Clone the repository and navigate to its directory:
$ git clone [email protected]:julelang/jule.nvim.git
$ cd jule.nvim

Execution

  1. Create a test Jule module:
$ julec mod init
$ printf "fn main() {\n    println(\"Hello world\")\n}" > main.jule
  1. Get the path to the plugin:
$ pwd
  1. Open Neovim:
$ nvim main.jule
  1. Set the runtime path and filetype:
:set runtimepath+=/path/to/jule.nvim
:set filetype=jule
  1. Source the plugin:
:source /path/to/jule.nvim/lua/jule/init.lua
  1. Configure the plugin:
:lua require('jule').setup { format_on_save = true }
  1. Done!

Code of Conduct

See the Julenour Code of Conduct

License

The extension is distributed under the terms of the BSD 3-Clause license.
See License Details