Skip to content

Trying to use a .luarc.json for type-checking #147

@peter-bread

Description

@peter-bread

(#33 may be relevant??)

With all plugins installed, this works:

{
  "workspace": {
    "library": [
      "/opt/homebrew/Cellar/neovim/0.11.4/share/nvim/runtime/lua", // or $VIMRUNTIME or whatever
      "/Users/petersheehan/.config/peter.nvim/lua",
      "/Users/petersheehan/.local/share/peter.nvim/lazy/*/lua", // THIS IS WRONG. YOU MUST LIST DIRECTORIES EXPLICITLY!!!
      "${3rd}/luv/library"
    ],
    "ignoreDir": ["/lua"], // I think this can be removed?
    "checkThirdParty": false
  },
  "runtime": {
    "version": "LuaJIT",
    "path": ["?.lua", "?/init.lua"],
    "pathStrict": true
  },
  "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/refs/heads/master/setting/schema.json"
}

Metadata

Metadata

Assignees

Labels

P1Work on when I get round to itciCIdocumentationImprovements or additions to documentationenhancementNew feature or requestlspLSP configresearchNeed more information about this

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions