Skip to content

How to incorporate emmlua annotations for hammerspoon while using lazydev? #63

Closed Answered by unphased
unphased asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like i got it working. i just nuked references to neodev, added lazydev, make sure to call require(lazydev).setup, kept the same code i had from way before, and just specified one thing inside, the hammerspoon annotations location provided via EmmyLua spoon:

require("mason-lspconfig").setup_handlers {    

...

  ["lua_ls"] = function ()
    safeRequire("lspconfig")["lua_ls"].setup {
      capabilities = capabilities,
      on_attach = lsp_attach,
      settings = {
        Lua = {
          workspace = {
            library = {
              string.format('%s/.hammerspoon/Spoons/EmmyLua.spoon/annotations', os.getenv 'HOME')
            }
          },
        }
      }
    }
  end,

A…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by unphased
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant