Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aiken-lang/editor-integration-nvim

A plugin for working with Aiken on Vim / NeoVim.
https://github.com/aiken-lang/editor-integration-nvim

aiken neovim-plugin nvim-plugin vim-plugin

Last synced: about 2 months ago
JSON representation

A plugin for working with Aiken on Vim / NeoVim.

Awesome Lists containing this project

README

        

# Aiken Vim

A plugin for working with [Aiken](https://github.com/txpipe/aiken) on Vim / NeoVim.

## Features

- [x] Syntax Highlighting
- [x] Automatic indentation

## Installation

### vim-plug

Simply use:

```vim
Plug 'aiken-lang/editor-integration-nvim'
```
### [lazy.nvim](https://github.com/folke/lazy.nvim)

First add this to lazy.nvim setup:

```lua
{
"aiken-lang/editor-integration-nvim",
dependencies = {
'neovim/nvim-lspconfig',
}
},
```

Then to enable the Aiken LSP, add the following to `init.lua` file:

```lua
require'lspconfig'.aiken.setup({})
```

To enable the auto formatting on save, add the following to `init.lua` file:

```lua
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

![](.github/preview.png)

## License

[MPL-2.0](./LICENSE)