The Flint syntax highlighter for Vim and Neovim.
To add the highlighter to Neovim just add these lines inside your azyvim setup section like this:
require('lazy').setup({
-- ...
{
'flint-lang/flint-syntax.nvim',
ft = 'flint',
},
-- ...
})That's it, no more setup required than this.
Vim 8+ loads plugins from pack/*/start/* directories automatically. Just clone the repository there:
git clone https://github.com/flint-lang/flint-syntax.nvim.git ~/.vim/pack/flint-lang/start/flint-syntax.nvimMake sure filetype plugins and syntax highlighting are enabled in your .vimrc:
filetype plugin indent on
syntax onWith vim-plug installed, add this to your .vimrc:
filetype plugin indent on
syntax on
call plug#begin()
Plug 'flint-lang/flint-syntax.nvim'
call plug#end()Then run :PlugInstall.
The defaults can be tweaked from anywhere in your config (e.g. your init.lua) before a Flint file is opened:
-- Use a different server binary (e.g. a debug build)
vim.g.fls_cmd = { 'fls-debug' }
-- Disable the automatic LSP setup entirely
vim.g.flint_syntax_lsp = falseIf you want to configure the LSP yourself, set vim.g.flint_syntax_lsp = false and set it up manually as before.