/vim-fennel-syntax

Vim syntax highlighting for Fennel.

Primary LanguageVim ScriptMIT LicenseMIT

vim-fennel-syntax

Vim syntax highlighting for Fennel. This is a personal fork from the original fennel.vim.

Screenshot

Installation

Use your favorite package manager. For example using Paq:

require'paq-nvim' {
  'mnacamura/vim-fennel-syntax',
}

Options

For all options, if both global and buffer local ones are defined, the buffer local one takes precedence.

fennel_lua_version

Highlight literals and keywords for the given Lua version. Supports 5.1, 5.2, 5.3, and 5.4. If not set, it will be inferred and set automatically by invoking lua -v command.

let g:fennel_lua_version = '5.4'  " default: inferred from environment

If g:fennel_lua_version and b:fennel_lua_version are not set and lua is not found in path, it defaults to 5.1.

fennel_use_luajit

Highlight literals and keywords extended in LuaJIT. If not set, it will be inferred and set automatically by invoking lua -v command.

let g:fennel_use_luajit = 0  " default: inferred from environment

If g:fennel_use_luajit and b:fennel_use_luajit are not set and lua (LuaJIT) is not found in path, it defaults to 0.

fennel_use_lume

Highlight keywords provided by Lume.

let g:fennel_use_lume = 1  " default: 1

Change log

Unreleased

  • Support accumulate macro

0.2 (2021-06-20)

  • Add option {g,b}:fennel_lua_version
  • Add option {g,b}:fennel_use_luajit
  • Fix \ddd in string literal
  • Add missing \<CR> in string literal
  • Add correct highlight for string/numeric literals for each Lua version

0.1 (2021-06-13)

  • Support Fennel 0.9.2
  • Support Lua string literals up to version 5.4
  • Support Lua numeric literals up to version 5.4

License

MIT