Skip to content

LSP in neovim #31

Answered by Amzd
Amzd asked this question in Q&A
May 28, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Okay after some more experimentation and research I landed on this manifest

{
  ...
  "build-options": {
    ...
    "build-args": [
      "--share=network" 
      "--build-dir=<<PROJ_DIR>>",
      "--filesystem=<<PROJ_DIR>>",
    ],
    "env": {
      "FLATPAK_BUILDER_BUILDDIR": "<<PROJ_DIR>>"
    }
  },
  • --share=network because SPM needs to fetch dependencies (you can omit this if you run swift package resolve manually)
  • --filesystem= gives the build system access to project files instead of only /run/build/proj
  • --build-dir= makes sure the swift build command is run inside the project folder instead of the sandboxed /run/build/proj
  • FLATPAK_BUILDER_BUILDDIR by default flatpack-builder set…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Amzd
Comment options

@david-swift
Comment options

@Amzd
Comment options

Answer selected by Amzd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants