From 64483f8cf6959957da988a8a54de230cc215cea2 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Fri, 20 Jan 2023 07:55:11 +0000 Subject: [PATCH] feat(vim): add the rescript lsp --- site-modules/core/files/vim/plugin/lsp.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/site-modules/core/files/vim/plugin/lsp.lua b/site-modules/core/files/vim/plugin/lsp.lua index ef0e07d..2505eaa 100644 --- a/site-modules/core/files/vim/plugin/lsp.lua +++ b/site-modules/core/files/vim/plugin/lsp.lua @@ -2,8 +2,16 @@ local lspconfig = require "lspconfig" local servers = { -- Language servers for the day to day web development, could probably think - -- about loosing the html and css one and living with typescript and emmet + -- about loosing the html and css one and living with typescript, rescript + -- and emmet tsserver = {}, + rescriptls = { + cmd = { + os.getenv "NVM_BIN" .. "/node", + os.getenv "HOME" .. "/.config/nvim/pack/bundle/start/vim-rescript/server/out/server.js", + "--stdio", + }, + }, html = {}, cssls = {}, emmet_ls = {