How to install and use? #93
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
If you're not using 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
},
},
},
},
} |
Beta Was this translation helpful? Give feedback.
-
|
I wanted to post again to this discussion because it might be useful. @lalvarezt I'm really sorry that I submitted to wrong place earlier initially. But I think you misunderstood me, I did not wanted show alternative. When I move type definitions to annotations folder they fully worked with my setup, I thought that might be a good idea to include it to setup guide. I changed it to symlink to get updates, kinda polluted the other post sorry again. Sharing here again git clone [email protected]:DrKJeff16/wezterm-types.git ~/.sandbox/wezterm-types
# or
luarocks install --local wezterm-types
# then you can create symlink
ln -s ~/.sandbox/wezterm-types/lua/wezterm/types/ ~/.config/wezterm/annotations
# or
ln -s ~/.luarocks/share/lua/5.5/wezterm/types/ ~/.config/wezterm/annotationsI tested both usage and they work. I just couldn't make it work with Lua.workspace.library configuration + luarocks install probably I'm missing something or its because of my setup. |
Beta Was this translation helpful? Give feedback.


If you're not using
lazydev.nvimI think you'd have to include the installation path in your LSP configuration, concretely in yourworkspace.librarysetting.A crude example: