Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aspeddro/rescript-tools.nvim
A plugin to improve your ReScript experience in Neovim
https://github.com/aspeddro/rescript-tools.nvim
lua neovim plugin rescript
Last synced: about 2 months ago
JSON representation
A plugin to improve your ReScript experience in Neovim
- Host: GitHub
- URL: https://github.com/aspeddro/rescript-tools.nvim
- Owner: aspeddro
- Created: 2022-11-19T00:30:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-18T20:21:44.000Z (about 1 year ago)
- Last Synced: 2024-04-17T22:11:00.670Z (9 months ago)
- Topics: lua, neovim, plugin, rescript
- Language: Lua
- Homepage:
- Size: 20.5 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rescript-tools.nvim
A plugin to improve your ReScript experience in Neovim.
## Requirements
- Neovim >= 0.8
- [ReScript Language Server](https://github.com/rescript-lang/rescript-vscode/tree/master/server) >= 1.10.0## Install
**lazy.nvim**
```lua
{ 'aspeddro/rescript-tools.nvim' }
```## Usage
```lua
-- Setup rescript LSP
require'lspconfig'.rescriptls.setup{
cmd = { 'rescript-language-server', '--stdio' },
on_attach = on_attach,
commands = {
ResOpenCompiled = {
require('rescript-tools').open_compiled,
description = 'Open Compiled JS',
},
ResCreateInterface = {
require('rescript-tools').create_interface,
description = 'Create Interface file',
},
ResSwitchImplInt = {
require('rescript-tools').switch_impl_intf,
description = 'Switch Implementation/Interface',
},
},
}
```Mode details see `help rescript-tools`