Support different config paths (#426)

This makes the configuration files work if neovim's config path is different from `~/.config/nvim`.
This commit is contained in:
Amandus Søve Thorsrud 2021-05-26 01:08:15 +02:00 committed by GitHub
parent 046d3e79a9
commit 74ffae99d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 11 deletions

View file

@ -1,6 +1,6 @@
-- If you are using rvm, make sure to change below configuration
require'lspconfig'.solargraph.setup {
cmd = { DATA_PATH .. "~/.rbenv/shims/solargraph", "--stdio" },
cmd = { DATA_PATH .. "/lspinstall/ruby/solargraph/solargraph", "--stdio" },
on_attach = require'lsp'.common_on_attach,
handlers = {
["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {