Make home directory finding dynamic for LSP servers

This commit is contained in:
Edward Litherland-Smith 2022-08-04 17:07:40 +01:00
parent b9e1da82b6
commit a0d4b1e4e8

View file

@ -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,
}