Browse Source

[nvim] Fix bug in julia lsp setup.

master
Fredrik Ekre 1 year ago
parent
commit
61525271d8
No known key found for this signature in database
GPG Key ID: DE82E6D5E364C0A2
  1. 2
      .config/nvim/lua/plugins/lsp.lua

2
.config/nvim/lua/plugins/lsp.lua

@ -46,7 +46,7 @@ local servers = {
local REVISE_LANGUAGESERVER = false local REVISE_LANGUAGESERVER = false
if REVISE_LANGUAGESERVER then if REVISE_LANGUAGESERVER then
new_config.cmd[5] = (new_config.cmd[5]):gsub("using LanguageServer", "using Revise; using LanguageServer; LanguageServer.USE_REVISE[] = true") new_config.cmd[5] = (new_config.cmd[5]):gsub("using LanguageServer", "using Revise; using LanguageServer; LanguageServer.USE_REVISE[] = true")
elseif require(lspconfig).util.path.is_file(julia) then elseif require("lspconfig").util.path.is_file(julia) then
new_config.cmd[1] = julia new_config.cmd[1] = julia
end end
end, end,

Loading…
Cancel
Save