Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1008 Bytes

README.md

File metadata and controls

60 lines (41 loc) · 1008 Bytes

Aiken Vim

A plugin for working with Aiken on Vim / NeoVim.

Features

  • Syntax Highlighting
  • Automatic indentation

Installation

vim-plug

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
})

Manual

Copy the content of ftdetect, indent and syntax to your $HOME/.config/nvim/. Make sure that :syntax is on.

Preview

License

MPL-2.0