Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/aiken-lang/editor-integration-nvim
- Owner: aiken-lang
- License: mpl-2.0
- Created: 2022-11-10T10:16:58.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T07:50:08.000Z (2 months ago)
- Last Synced: 2024-10-30T13:37:53.881Z (2 months ago)
- Topics: aiken, neovim-plugin, nvim-plugin, vim-plugin
- Language: Vim Script
- Homepage:
- Size: 721 KB
- Stars: 13
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)