Skip to content

curist/tree-sitter-lx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

intro

Lx grammer in tree-sitter.

Lx is a Lox derived programming language.

vim plugin

This repo also contains vim filetype plugins.

install using vim-plug

Plug 'curist/tree-sitter-lx', { 'rtp': 'vim' }

neovim tree-sitter config

local parser_config = require 'nvim-treesitter.parsers'.get_parser_configs()
parser_config.lx = {
  install_info = {
    url = "~/.config/nvim/plugged/tree-sitter-lx",
    -- XXX: ^ may need to change this to where you install plugins
    files = {"src/parser.c"},
    branch = "main",
  },
}