return { cmd = { "lua-language-server" }, filetypes = { "lua" }, root_markers = { ".luarc.json", ".luarc.jsonc", ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", "selene.yml", ".git" }, settings = { Lua = { runtime = { version = "LuaJIT" }, -- Neovim uses LuaJIT diagnostics = { globals = { "vim" } }, -- Recognize 'vim' global }, }, }