Skip to content
Discussion options

You must be logged in to vote

If you're not using lazydev.nvim I think you'd have to include the installation path in your LSP configuration, concretely in your workspace.library setting.

A crude example:

return {
  cmd = { 'lua-language-server' },
  filetypes = { 'lua' },
  settings = {
    Lua = {
      completion = { callSnippet = 'Replace', keywordSnippet = 'Replace' },
      workspace = {
        library = {
          vim.fn.expand('~/.luarocks/share/lua/5.1'), -- REPLACE WITH YOUR LUAROCKS PATH OR PLUGIN INSTALL DIRECTORY
        },
      },
    },
  },
}

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
6 replies
@sunbearc22
Comment options

@DrKJeff16
Comment options

@DrKJeff16
Comment options

@sunbearc22
Comment options

@DrKJeff16
Comment options

Answer selected by DrKJeff16
Comment options

You must be logged in to vote
2 replies
@lalvarezt
Comment options

@dorukozerr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
4 participants