Closed
Description
How are you using the lua-language-server?
NeoVim
Which OS are you using?
MacOS
What is the issue affecting?
Other
Expected Behaviour
In response to the following warning:
More than 100000 files have been scanned. The current scanned directory is `/development/lakay`.
I've added workspace.ignoreDir
config like so:
lua_ls = {
settings = {
Lua = {
workspace = {
ignoreDir = { "node_modules", ".git", "dist", "build" },
},
completion = {
callSnippet = "Replace",
},
diagnostics = { disable = { "missing-fields" } },
},
},
},
The directory itself doesn't have that many files and the outputted directory in the warning matches the one one in the logs:
rootPath = "/development/lakay",
rootUri = "file:///development/lakay",
I'm not sure why I would still be getting this message. I don't think there's an actual bug, but I would love some guidance as to what I might be missing
Actual Behaviour
I continue to receive the same warning.
Reproduction steps
Configure lua_ls
local servers = {
lua_ls = {
-- cmd = {...},
-- filetypes = { ...},
-- capabilities = {},
settings = {
Lua = {
workspace = {
ignoreDir = { "node_modules", ".git", "dist", "build" },
},
completion = {
callSnippet = "Replace",
},
diagnostics = { disable = { "missing-fields" } },
},
},
},
}
require("mason").setup()
local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, {
"stylua", -- Used to format Lua code
})
require("mason-tool-installer").setup({ ensure_installed = ensure_installed })
require("mason-lspconfig").setup({
handlers = {
function(server_name)
local server = servers[server_name] or {}
server.capabilities = vim.tbl_deep_extend("force", {}, capabilities, server.capabilities or {})
require("lspconfig")[server_name].setup(server)
end,
},
})
Metadata
Metadata
Assignees
Labels
No labels