A plugin to improve your ReScript experience in Neovim.
- Neovim >= 0.8
- ReScript Language Server >= 1.10.0
lazy.nvim
{ 'aspeddro/rescript-tools.nvim' }
-- 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