Skip to content

aiken-lang/editor-integration-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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