-
-
Notifications
You must be signed in to change notification settings - Fork 179
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I have confirmed that this is a bug related to nvf
- This is a bug, and not an user error or a support request. I understand that my issue will be closed if it is not a bug in nvf.
- I have checked the issues tab and confirmed that my issue has not yet been reported. I understand that my issue will be closed if it is a duplicate.
Description
When overriding the julials configuration to use the julia binary from the system/user path and not the one provided by nvf, the configuration basically does nothing, even when juliia and the LanguageServer package are installed.
I reckon it must be due to the way nvf transforms multiline vim.lsp.servers.*.cmd, as I've encountered this problem when trying to configure the godot lsp before, which was fixed by rewriting the cmd config to one line.
Installation Method
Home Manager Flake
Installation Method (Other)
No response
nvf Version
master
Reproduction steps
- Enable Julia language support, or enable
julialslsp. - Override the
cmdconfig to use pathjuliainstead of the nvf-vendored.
Expected behavior
The configuration should work, and overriding the cmd from the default provided by nvf causes no issues.
Actual Behavior
Configuration for the particular language server does not work.
System Information
- system: `"x86_64-linux"`
- host os: `Linux 6.17.1, NixOS, 25.11 (Xantusia), 25.11.20251009.0b4defa`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Lix, like Nix) 2.93.3
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/virus-free/.config/nix/nix.conf:/nix/store/xsh698rv45vmf8y8mf5wl9pwx53hgkdh-plasma-workspace-6.4.5/etc/xdg/nix/nix.conf:/nix/store/rmdbggbsmm4jd92rkbgfpsqf1pz8pk5b-kglobalacceld-6.4.5/etc/xdg/nix/nix.conf:/nix/store/q31rwxq31qix2cnr7aff0ha2j66pwnpx-baloo-6.18.0/etc/xdg/nix/nix.conf:/home/virus-free/.config/kdedefaults/nix/nix.conf:/nix/store/xsh698rv45vmf8y8mf5wl9pwx53hgkdh-plasma-workspace-6.4.5/etc/xdg/nix/nix.conf:/nix/store/rmdbggbsmm4jd92rkbgfpsqf1pz8pk5b-kglobalacceld-6.4.5/etc/xdg/nix/nix.conf:/nix/store/q31rwxq31qix2cnr7aff0ha2j66pwnpx-baloo-6.18.0/etc/xdg/nix/nix.conf:/home/virus-free/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/virus-free/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/virus-free/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/virus-free/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/virus-free/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/zxl9ivn2v7xcrzlf4j036fl6av34zwv9-lix-2.93.3/share`
- channels(root): `"nixos"`
- nixpkgs: `/home/virus-free/.nix-defexpr/channels/nixpkgs`Relevant log output
vim.lsp.config["julials"] = {
["cmd"] = {
'julia',
'--startup-file=no',
'--history-file=no',
'-e',
[[
ls_install_path = joinpath(
get(DEPOT_PATH, 1, joinpath(homedir(), ".julia")),
"environments", "nvim-lspconfig"
)
pushfirst!(LOAD_PATH, ls_install_path)
using LanguageServer
popfirst!(LOAD_PATH)
depot_path = get(ENV, "JULIA_DEPOT_PATH", "")
project_path = let
dirname(something(
Base.load_path_expand((
p = get(ENV, "JULIA_PROJECT", nothing);
p === nothing ? nothing : isempty(p) ? nothing : p
)),
Base.current_project(),
get(Base.load_path(), 1, nothing),
Base.load_path_expand("@v#.#"),
))
end
@info "Running language server" VERSION pwd() project_path depot_path
server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path)
server.runlinter = true
run(server)
]],
}
,
["enable"] = true,
["filetypes"] = { "julia",
"jl" }
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working