Make home directory finding dynamic for LSP servers
This commit is contained in:
parent
b9e1da82b6
commit
a0d4b1e4e8
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue