-
Notifications
You must be signed in to change notification settings - Fork 51
How to make it follow require paths?
#843
-
|
I have this Neovim config, and ---@type vim.lsp.Config
return {
cmd = { 'emmylua_ls' },
filetypes = { 'lua' },
root_markers = {
'.luarc.json',
'.luarc.jsonc',
'.stylua.toml',
'stylua.toml',
'selene.toml',
'selene.yml',
'.emmyrc.json',
'.git',
},
workspace_required = false,
---@type lsp.emmylua_ls
settings = {
Lua = {
runtime = {
version = 'LuaJIT',
requirePattern = {
'?.lua',
'?/init.lua',
'lua/init.lua',
'lua/?.lua',
'lua/?/init.lua',
'lua/?/?.lua',
'plugin/?.lua',
'ftplugin/?.lua',
'after/?.lua',
'after/?/?.lua',
'spec/?.lua',
},
frameworkVersions = { 'luv' },
},
diagnostics = {
globals = { 'vim' },
},
strict = {
requirePath = false,
},
workspace = {
library = vim.api.nvim_list_runtime_paths(),
},
},
},
} |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment · 2 replies
-
|
see the lsp log in $XDG/emmylua_ls/log/<file_path>.log |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
doesn't seem anything unusual in there as far as I can tell. I redacted paths and replaced with expand for logs |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
I had my path setup wrong. I needed to wait for my plugin manager to fully setup my lua runtimepath before setting up the LSP. |
Beta Was this translation helpful? Give feedback.
I had my path setup wrong. I needed to wait for my plugin manager to fully setup my lua runtimepath before setting up the LSP.