Skip to content

Neovim plugin for the educational programming language E2 and its intermediate representation.

License

Notifications You must be signed in to change notification settings

mrdgo/e2.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Treesitter highlights for E2 and its IR

Installation

-- Lazy
{
    'mrdgo/e2.nvim',
    config = true,
    dependencies = { 'nvim-treesitter/nvim-treesitter' }
}

Features

  • Filetype detection
  • Setup treesitter parser
  • Treesitter highlights

for E2 and ir files.

Note: *.ir will only be interpreted as e2ir, if it resides in a subdirectory of the e2compiler. If you want to manually override this restriction, take a look at :h filetype. Examples:

*.ir as e2ir everywhere:

vim.filetype.add({
   extension = {
      ir = "e2ir"
   }
})

Add directoryX to the directories in which *.ir always is e2ir:

vim.filetype.add({
   pattern = {
      [".*/directoryX/.*.ir"] = "e2ir"
   }
})

About

Neovim plugin for the educational programming language E2 and its intermediate representation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published