Skip to content

A plugin to improve your ReScript experience in Neovim

Notifications You must be signed in to change notification settings

aspeddro/rescript-tools.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rescript-tools.nvim

A plugin to improve your ReScript experience in Neovim.

Requirements

Install

lazy.nvim

{ 'aspeddro/rescript-tools.nvim' }

Usage

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