From a0d4b1e4e8950337c6e85e60c9709d3687114c58 Mon Sep 17 00:00:00 2001 From: Edward Litherland-Smith Date: Thu, 4 Aug 2022 17:07:40 +0100 Subject: [PATCH] Make home directory finding dynamic for LSP servers --- lsp_config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lsp_config.lua b/lsp_config.lua index 269c21c6..575ba457 100644 --- a/lsp_config.lua +++ b/lsp_config.lua @@ -37,7 +37,7 @@ local lsp_flags = { debounce_text_changes = 150, } require('lspconfig')['pylsp'].setup{ - cmd = {"/home/elitherl/.pyenv/versions/neovim3/bin/pylsp"}, + cmd = {os.getenv( "HOME" ).."/.pyenv/versions/neovim3/bin/pylsp"}, on_attach = on_attach, flags = lsp_flags, settings = { @@ -50,7 +50,7 @@ require('lspconfig')['pylsp'].setup{ } } require('lspconfig')['fortls'].setup{ - cmd = {"/home/elitherl/.pyenv/versions/neovim3/bin/fortls"}, + cmd = {os.getenv( "HOME" ).."/.pyenv/versions/neovim3/bin/fortls"}, on_attach = on_attach, flags = lsp_flags, }