From 0ae5312f5d7da32201e479303d317d0cdc5e1292 Mon Sep 17 00:00:00 2001 From: erw7 Date: Mon, 6 Jul 2020 02:30:31 +0900 Subject: Add extension to solargraph command name on Windows --- lua/nvim_lsp/solargraph.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lua/nvim_lsp/solargraph.lua') diff --git a/lua/nvim_lsp/solargraph.lua b/lua/nvim_lsp/solargraph.lua index 9532f21a..ee023a1c 100644 --- a/lua/nvim_lsp/solargraph.lua +++ b/lua/nvim_lsp/solargraph.lua @@ -1,9 +1,13 @@ local configs = require 'nvim_lsp/configs' local util = require 'nvim_lsp/util' +local bin_name = "solargraph" +if vim.fn.has('win32') == 1 then + bin_name = bin_name..'.bat' +end configs.solargraph = { default_config = { - cmd = {"solargraph", "stdio"}; + cmd = {bin_name, "stdio"}; filetypes = {"ruby"}; root_dir = util.root_pattern("Gemfile", ".git"); }; -- cgit v1.2.3-70-g09d2