Files

28 lines
856 B
Lua
Raw Permalink Normal View History

2025-11-01 12:28:27 +01:00
function(client)
if client.workspace_folders then
local path = client.workspace_folders[1].name
if vim.uv.fs_stat(path .. '/.luarc.json') or vim.uv.fs_stat(path .. '/.luarc.jsonc') then
return
end
2025-02-05 11:35:22 +01:00
end
2025-11-01 12:28:27 +01:00
client.config.settings.Lua = vim.tbl_deep_extend("force", client.config.settings.Lua or {}, {
runtime = {
-- Tell the language server which version of Lua you're using
-- (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT'
},
-- Make the server aware of Neovim runtime files
workspace = {
checkThirdParty = false,
library = {
vim.env.VIMRUNTIME,
vim.api.nvim_get_runtime_file('', true),
-- Depending on the usage, you might want to add additional paths here.
-- "${3rd}/luv/library"
-- "${3rd}/busted/library",
}
2025-02-05 11:35:22 +01:00
}
2025-11-01 12:28:27 +01:00
})
end