From ed39483c408fef85a181aad8379bf2b109b94e83 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sun, 15 Oct 2023 15:46:01 +0100 Subject: [PATCH] fix(vim): force solargraph to use bundle exec Solargraph is best used installed in your Gemfile, this will allow you to use manage the versions by each project. This will ensure that we are using the version in your Gemfile, not the one installed globally. --- site-modules/core/files/vim/plugin/lsp.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site-modules/core/files/vim/plugin/lsp.lua b/site-modules/core/files/vim/plugin/lsp.lua index cdf49f9..7edc5ad 100644 --- a/site-modules/core/files/vim/plugin/lsp.lua +++ b/site-modules/core/files/vim/plugin/lsp.lua @@ -15,7 +15,9 @@ local servers = { filetypes = { "html", "typescriptreact", "javascriptreact", "css", "scss", "eruby" }, }, -- Ruby - solargraph = {}, + solargraph = { + cmd = { "bundle", "exec", "solargraph", "stdio" }, + }, -- Rust rust_analyzer = {}, -- Lua for the vim config and plugin dev