A plugin for working with Aiken on Vim / NeoVim.
- Syntax Highlighting
- Automatic indentation
Simply use:
Plug 'aiken-lang/editor-integration-nvim'
First add this to lazy.nvim setup:
{
"aiken-lang/editor-integration-nvim",
dependencies = {
'neovim/nvim-lspconfig',
}
},
Then to enable the Aiken LSP, add the following to init.lua
file:
require'lspconfig'.aiken.setup({})
To enable the auto formatting on save, add the following to init.lua
file:
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = "*.ak",
callback = function()
vim.lsp.buf.format({async = false})
end
})
Copy the content of ftdetect
, indent
and syntax
to your $HOME/.config/nvim/
.
Make sure that :syntax
is on
.